[gnome-software/gnome-3-18] Don't override prgname with org.gnome.Software



commit 421126c240d9e1c8579ea2830fda8d87cd991179
Author: Kalev Lember <klember redhat com>
Date:   Thu Nov 26 16:51:25 2015 +0100

    Don't override prgname with org.gnome.Software
    
    Just use the default, so that --help shows 'gnome-software' instead of
    'org.gnome.Software' as the binary name.
    
    Incidentally, this also fixes Dogtail tests to run on my machine.

 src/gs-application.c |    1 -
 tests/actions.py     |    2 +-
 tests/basic.py       |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index f07f32d..f38505e 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -703,7 +703,6 @@ gs_application_class_init (GsApplicationClass *class)
 GsApplication *
 gs_application_new (void)
 {
-       g_set_prgname("org.gnome.Software");
        return g_object_new (GS_APPLICATION_TYPE,
                             "application-id", "org.gnome.Software",
                             "inactivity-timeout", 12000,
diff --git a/tests/actions.py b/tests/actions.py
index f9a2a36..da0887e 100755
--- a/tests/actions.py
+++ b/tests/actions.py
@@ -20,7 +20,7 @@ from dogtail.rawinput import keyCombo
 try:
     run('gnome-software')
 
-    app = root.application('org.gnome.Software')
+    app = root.application('gnome-software')
 
     bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)
     proxy = Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE,
diff --git a/tests/basic.py b/tests/basic.py
index dcdea55..199393b 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -21,7 +21,7 @@ from dogtail.procedural import *
 try:
     run('gnome-software')
 
-    app_name = 'org.gnome.Software'
+    app_name = 'gnome-software'
     app = root.application(app_name)
 
     all_button = app.child('All')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]