summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/applet/applet.c2
-rw-r--r--src/gui-gtk/main.c2
-rw-r--r--src/gui-wizard-gtk/main.c6
3 files changed, 9 insertions, 1 deletions
diff --git a/src/applet/applet.c b/src/applet/applet.c
index e965a3ba..aff82841 100644
--- a/src/applet/applet.c
+++ b/src/applet/applet.c
@@ -221,7 +221,7 @@ int main(int argc, char** argv)
/* Parse options */
int opt;
- while ((opt = getopt(argc, argv, "dv")) != -1)
+ while ((opt = getopt(argc, argv, "v")) != -1)
{
switch (opt)
{
diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c
index e9b175aa..39d9f7ec 100644
--- a/src/gui-gtk/main.c
+++ b/src/gui-gtk/main.c
@@ -204,6 +204,8 @@ int main(int argc, char **argv)
* desktops which uses the name to find the corresponding .desktop file
* trac#180
*/
+ g_set_prgname("abrt");
+
gtk_init(&argc, &argv);
/* Can't keep these strings/structs static: _() doesn't support that */
diff --git a/src/gui-wizard-gtk/main.c b/src/gui-wizard-gtk/main.c
index d1341b4b..cdcf9e43 100644
--- a/src/gui-wizard-gtk/main.c
+++ b/src/gui-wizard-gtk/main.c
@@ -69,6 +69,12 @@ int main(int argc, char **argv)
textdomain(PACKAGE);
#endif
+ /* without this the name is set to argv[0] which confuses
+ * desktops which uses the name to find the corresponding .desktop file
+ * trac#180
+ */
+ g_set_prgname("abrt");
+
gtk_init(&argc, &argv);
/* Can't keep these strings/structs static: _() doesn't support that */