summaryrefslogtreecommitdiff
path: root/src/nautilus-file-utilities.h
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-03-16 17:24:11 +0200
committerErnestas Kulik <ernestask@gnome.org>2018-03-18 22:28:08 +0200
commitdf583c2e4aded65da329a9e14279be40d9c397f2 (patch)
tree224287e6f8378eca5b97814a3019f4696d0c7d48 /src/nautilus-file-utilities.h
parent30a76b3033af7d937380c3c77a2665bf979e4bc9 (diff)
downloadnautilus-df583c2e4aded65da329a9e14279be40d9c397f2.tar.gz
general: Allow running in separate instance
When hacking on Nautilus, it is very inconvenient to have to close any running instance before running the built version. This commit enables running three different instances by changing the application ID. Beside the default “profile” is one crafted for stable flatpak releases and one for development. The stable flatpak profile adds an identifying mark to the about dialog to aid collecting information in bug reports. The development profile is that plus additional styling to help visually identify the development instance. It also will be used when generating Flatpak bundles with the help of CI. Generally, the implementation is slightly hacky to allow all the different workflows, spanning from regular installations to GNOME Builder flatpak builds, as each comes with its own quirks.
Diffstat (limited to 'src/nautilus-file-utilities.h')
-rw-r--r--src/nautilus-file-utilities.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-file-utilities.h b/src/nautilus-file-utilities.h
index a5a523830..4b2124b3b 100644
--- a/src/nautilus-file-utilities.h
+++ b/src/nautilus-file-utilities.h
@@ -26,7 +26,9 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
-#define NAUTILUS_DESKTOP_ID "org.gnome.Nautilus.desktop"
+#include <config.h>
+
+#define NAUTILUS_DESKTOP_ID APPLICATION_ID ".desktop"
/* These functions all return something something that needs to be
* freed with g_free, is not NULL, and is guaranteed to exist.