aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/80indicator-debugging14
-rw-r--r--tools/Makefile.am5
2 files changed, 19 insertions, 0 deletions
diff --git a/tools/80indicator-debugging b/tools/80indicator-debugging
new file mode 100644
index 0000000..f21559c
--- /dev/null
+++ b/tools/80indicator-debugging
@@ -0,0 +1,14 @@
+# These are environment variables that effect the behavior
+# of libindicator's service manager and indicator service
+# objects. They turn off various robustness features that
+# make debugging difficult and are not recommended for
+# daily use. Development use only!
+
+# Timeout after 1 minute
+export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=60000
+
+# If no one connects, still stay alive
+export INDICATOR_ALLOW_NO_WATCHERS=1
+
+# Don't restart the services if they crash
+export INDICATOR_SERVICE_RESTART_DISABLE=1
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 5e5ef8d..168cea8 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -19,3 +19,8 @@ indicator_loader_LDADD = \
-L$(top_builddir)/libindicator/.libs \
-lindicator
+xsessiondir = $(sysconfdir)/X11/Xsession.d
+
+xsession_DATA = 80indicator-debugging
+
+EXTRA_DIST = $(xsession_DATA)