summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-04-08 13:55:16 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-04-08 13:55:16 +0000
commit2ca22dcba57ccc6a186b2bc29414e4f2a60ea129 (patch)
tree8104afac33d13bd3b5a5ef050849b2f7ee84cc2e
parentINSTALL: Improve cmake invocation examples (diff)
downloadinkscape-2ca22dcba57ccc6a186b2bc29414e4f2a60ea129.tar.gz
inkscape-2ca22dcba57ccc6a186b2bc29414e4f2a60ea129.zip
Make the Inkscape application run as a single instance... expect if --gapplication-app-id is set.
This avoids potential problems with copying between documents and prevents race conditions in saving preferences.
-rw-r--r--src/inkscape-application.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inkscape-application.cpp b/src/inkscape-application.cpp
index 1ba4cd0b6..97233f32b 100644
--- a/src/inkscape-application.cpp
+++ b/src/inkscape-application.cpp
@@ -436,7 +436,11 @@ template<class T>
ConcreteInkscapeApplication<T>::ConcreteInkscapeApplication()
: T("org.inkscape.application.with_gui",
Gio::APPLICATION_HANDLES_OPEN | // Use default file opening.
- Gio::APPLICATION_NON_UNIQUE ) // Allows different instances of Inkscape to run at same time.
+ 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).
, InkscapeApplication()
{