[dconf-editor] Try to fix commandline when flatpak’d (2).



commit bdb62a9b5fa2f17efc8eee6458620d16eb3d2709
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Feb 26 03:33:06 2018 +0100

    Try to fix commandline when flatpak’d (2).

 editor/dconf-editor.vala |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index da038c7..718fe82 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -340,15 +340,18 @@ class ConfigurationEditor : Gtk.Application
 
         if (arg0.has_prefix ("/"))
         {
-            int ret = Posix.EXIT_SUCCESS;
+            Gtk.Window window = get_new_window (null, arg0, null);
             if (args.length == 2)
             {
                 commands.print (_("Cannot understand second argument in this context.\n"));
-                ret = Posix.EXIT_FAILURE;
+                window.present ();
+                return Posix.EXIT_FAILURE;
+            }
+            else
+            {
+                window.present ();
+                return Posix.EXIT_SUCCESS;
             }
-            Gtk.Window window = get_new_window (null, arg0, null);
-            window.present ();
-            return ret;
         }
 
         string? key_name = null;


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