1 |
commit e4200116d227ac159d45d84bfbdbaf85d188c4bb |
2 |
Author: Denys Vlasenko <dvlasenk@redhat.com> |
3 |
Date: Fri May 6 22:27:40 2011 +0200 |
4 |
|
5 |
reinstated g_set_prgname("abrt") |
6 |
|
7 |
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> |
8 |
|
9 |
diff --git a/src/applet/applet.c b/src/applet/applet.c |
10 |
index e965a3b..aff8284 100644 |
11 |
--- a/src/applet/applet.c |
12 |
+++ b/src/applet/applet.c |
13 |
@@ -221,7 +221,7 @@ int main(int argc, char** argv) |
14 |
|
15 |
/* Parse options */ |
16 |
int opt; |
17 |
- while ((opt = getopt(argc, argv, "dv")) != -1) |
18 |
+ while ((opt = getopt(argc, argv, "v")) != -1) |
19 |
{ |
20 |
switch (opt) |
21 |
{ |
22 |
diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c |
23 |
index e9b175a..39d9f7e 100644 |
24 |
--- a/src/gui-gtk/main.c |
25 |
+++ b/src/gui-gtk/main.c |
26 |
@@ -204,6 +204,8 @@ int main(int argc, char **argv) |
27 |
* desktops which uses the name to find the corresponding .desktop file |
28 |
* trac#180 |
29 |
*/ |
30 |
+ g_set_prgname("abrt"); |
31 |
+ |
32 |
gtk_init(&argc, &argv); |
33 |
|
34 |
/* Can't keep these strings/structs static: _() doesn't support that */ |
35 |
diff --git a/src/gui-wizard-gtk/main.c b/src/gui-wizard-gtk/main.c |
36 |
index d1341b4..cdcf9e4 100644 |
37 |
--- a/src/gui-wizard-gtk/main.c |
38 |
+++ b/src/gui-wizard-gtk/main.c |
39 |
@@ -69,6 +69,12 @@ int main(int argc, char **argv) |
40 |
textdomain(PACKAGE); |
41 |
#endif |
42 |
|
43 |
+ /* without this the name is set to argv[0] which confuses |
44 |
+ * desktops which uses the name to find the corresponding .desktop file |
45 |
+ * trac#180 |
46 |
+ */ |
47 |
+ g_set_prgname("abrt"); |
48 |
+ |
49 |
gtk_init(&argc, &argv); |
50 |
|
51 |
/* Can't keep these strings/structs static: _() doesn't support that */ |
52 |
|