aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lightdm-remote-session-remoteconfigure.default9
-rw-r--r--remoteconfigure-session.in8
2 files changed, 15 insertions, 2 deletions
diff --git a/lightdm-remote-session-remoteconfigure.default b/lightdm-remote-session-remoteconfigure.default
index d1fdcd4..a9eb144 100644
--- a/lightdm-remote-session-remoteconfigure.default
+++ b/lightdm-remote-session-remoteconfigure.default
@@ -1,3 +1,10 @@
+# lightdm-remote-session-remoteconfigure: Tweaking it...
+
# URL for the Remote Logon Configuration tool for this site / host
# Adapt to your needs and make sure, Firefox can handle the URL.
-#REMOTECONFIGURE_URL=https://service.arctica-project.org/remoteconfigure \ No newline at end of file
+
+#REMOTECONFIGURE_URL="https://service.arctica-project.org/remoteconfigure"
+
+# X session manager that we run this browser session in, it needs
+# to be an X session manager that is able to load XDG autostart applications.
+#X_SESSION_MANAGER="x-session-manager"
diff --git a/remoteconfigure-session.in b/remoteconfigure-session.in
index b74bf9b..f75a5d2 100644
--- a/remoteconfigure-session.in
+++ b/remoteconfigure-session.in
@@ -15,9 +15,15 @@
#
# Author: Ted Gould <ted@canonical.com>
+X_SESSION_MANAGER="x-session-manager"
+
+if [ -f "/etc/default/lightdm-remote-session-remoteconfigure" ]; then
+ . /etc/default/lightdm-remote-session-remoteconfigure
+fi
+
# Set up a Firefox autostart
mkdir -p ~/.config/autostart/
cp @pkgdatadir@/firefox-remoteconfigure.desktop ~/.config/autostart/
# Final thing is to run a minimal desktop session
-exec openbox
+exec "${X_SESSION_MANAGER}"