[dconf-editor: 1/2] Allow (optionally) running multiple instances
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor: 1/2] Allow (optionally) running multiple instances
- Date: Mon, 15 Jul 2019 21:55:50 +0000 (UTC)
commit d039580a19bb17598ea509b4caef0e0ce316310a
Author: Ole Jørgen Brønner <ole jorgen solutionseeker no>
Date: Mon Jul 8 20:31:15 2019 +0200
Allow (optionally) running multiple instances
ApplicationFlags.CAN_OVERRIDE_APP_ID enables the --gapplication-app-id flag.
If an instance of dconf-editor is open one can use the flag to open a new
instance:
dconf-editor --gapplicaton-app-id org.my-app.dconf-editor
This can be useful to edit database entries with non-installed schemas[1]
without closing an already open editor. gnome-shell extensions being an
example.
[1] By using the GSETTINGS_SCHEMA_DIR env variable
ref: #39
editor/dconf-editor.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index b9d1961..f99aed8 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -192,7 +192,7 @@ private class ConfigurationEditor : Gtk.Application, BaseApplication
private ConfigurationEditor ()
{
- Object (application_id: "ca.desrt.dconf-editor", flags:
ApplicationFlags.HANDLES_COMMAND_LINE|ApplicationFlags.HANDLES_OPEN);
+ Object (application_id: "ca.desrt.dconf-editor", flags:
ApplicationFlags.HANDLES_COMMAND_LINE|ApplicationFlags.HANDLES_OPEN|ApplicationFlags.CAN_OVERRIDE_APP_ID);
set_option_context_parameter_string ("[ PATH | [FIXED_SCHEMA|RELOC_SCHEMA:DIR] [KEY] ]");
/* Translators: command-line text, description of the application in 'dconf-editor --help'; try to
put that string in 80 characters or less, if possible. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]