[seahorse/wip/nielsdg/fix-service-handling: 7/7] Fix hidden window when launched from .desktop



commit a715abc49ceff0bf6b0390207c3aec13445eafdc
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Aug 30 23:37:55 2018 +0200

    Fix hidden window when launched from .desktop
    
    We incorrectly didn't call the base handler for the `local_command_line`
    signal of our Application, which means some things weren't initialized
    properly.
    
    This should fix #192

 data/org.gnome.seahorse.Application.service.in | 2 +-
 src/application.vala                           | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/org.gnome.seahorse.Application.service.in b/data/org.gnome.seahorse.Application.service.in
index 977ce648..a1400b86 100644
--- a/data/org.gnome.seahorse.Application.service.in
+++ b/data/org.gnome.seahorse.Application.service.in
@@ -1,3 +1,3 @@
 [D-BUS Service]
 Name=org.gnome.seahorse.Application
-Exec=@bindir@/seahorse --no-window
+Exec=@bindir@/seahorse --gapplication-service
diff --git a/src/application.vala b/src/application.vala
index 62bb97d3..cd7331be 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -94,9 +94,7 @@ public class Seahorse.Application : Gtk.Application {
             return true;
         }
 
-        exit_status = 0;
-        /* return base.local_command_line(ref arguments, out exit_status); */
-        return false;
+        return base.local_command_line(ref arguments, out exit_status);
     }
 
     static bool no_window = false;


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