[dconf-editor] Fix opening schema path with ":" from command line



commit f924af83749573abcc045aa6bbcb78ca912976d1
Author: Davi da Silva Böger <dsboger gmail com>
Date:   Sun Dec 17 22:40:04 2017 -0200

    Fix opening schema path with ":" from command line

 editor/dconf-editor.vala |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index 58e3efd..25cfc4c 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -347,15 +347,7 @@ class ConfigurationEditor : Gtk.Application
             }
         }
 
-        string [] test_format = arg0.split (":");
-
-        if (test_format.length > 2)
-        {
-            commands.print (_("Cannot understand: too many colons.\n"));
-            simple_activation ();
-            return Posix.EXIT_FAILURE;
-        }
-
+        string [] test_format = arg0.split (":", 2);
         string? path = null;
 
         if (test_format.length == 2)


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