diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-05-27 10:49:08 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-05-27 10:49:08 +0000 |
| commit | 2998240db89caabd4c5766f7f57b9a13241f7dc9 (patch) | |
| tree | f7dc546316eaa36a36a795bc073d955d77762ed7 /src/inkscape-application.cpp | |
| parent | Hackfest2019: Rm tautological tests (diff) | |
| parent | merged in master (diff) | |
| download | inkscape-2998240db89caabd4c5766f7f57b9a13241f7dc9.tar.gz inkscape-2998240db89caabd4c5766f7f57b9a13241f7dc9.zip | |
Hackfest2019: Rm tautological tests
Diffstat (limited to 'src/inkscape-application.cpp')
| -rw-r--r-- | src/inkscape-application.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/inkscape-application.cpp b/src/inkscape-application.cpp index 77734ecd4..3b034b06b 100644 --- a/src/inkscape-application.cpp +++ b/src/inkscape-application.cpp @@ -434,15 +434,21 @@ ConcreteInkscapeApplication<T>::get_instance() return instance; } +// Note: We tried using Gio::APPLICATION_CAN_OVERRIDE_APP_ID instead of +// Gio::APPLICATION_NON_UNIQUE. The advantages of this is that copy/paste between windows would be +// more reliable and that we wouldn't have multiple Inkscape instance writing to the preferences +// file at the same time (if started as separate processes). This caused problems with batch +// processing files and with extensions as they rely on having multiple instances of Inkscape +// running independently. In principle one can use --gapplication-app-id to run a new instance of +// Inkscape but this with our current structure fails with the error message: +// "g_application_set_application_id: assertion '!application->priv->is_registered' failed". +// It also require generating new id's for each separate Inkscape instance required. + template<class T> ConcreteInkscapeApplication<T>::ConcreteInkscapeApplication() : T("org.inkscape.application.with_gui", Gio::APPLICATION_HANDLES_OPEN | // Use default file opening. - Gio::APPLICATION_CAN_OVERRIDE_APP_ID ) // Allows different instances of - // Inkscape to run at same time using - // --gapplication-app-id (useful for - // debugging different versions of - // Inkscape). + Gio::APPLICATION_NON_UNIQUE ) , InkscapeApplication() { @@ -590,7 +596,7 @@ ConcreteInkscapeApplication<Gtk::Application>::on_startup2() // removed after confirming this code isn't required. _builder = Gtk::Builder::create(); - Glib::ustring app_builder_file = get_filename(UIS, "inkscape-application.xml"); + Glib::ustring app_builder_file = get_filename(UIS, "inkscape-application.glade"); try { |
