[X2Go-Commits] [x2goserver] 05/50: xsettings: add post-start hook.

git-admin at x2go.org git-admin at x2go.org
Tue Mar 3 16:07:13 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/x2goserver-xsettings
in repository x2goserver.

commit a82068f4507364883e5354e6843dbad065357c02
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Nov 23 03:47:33 2014 +0100

    xsettings: add post-start hook.
---
 .../post-start.d/900_xsettings-xsettingsd-startup  |   36 ++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/x2goserver-xsettings/lib/x2go/extensions/post-start.d/900_xsettings-xsettingsd-startup b/x2goserver-xsettings/lib/x2go/extensions/post-start.d/900_xsettings-xsettingsd-startup
new file mode 100644
index 0000000..3a8cfff
--- /dev/null
+++ b/x2goserver-xsettings/lib/x2go/extensions/post-start.d/900_xsettings-xsettingsd-startup
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Copyright (C) 2014 X2Go Project - http://wiki.x2go.org
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Copyright (C) 2014 Mihai Moldovan <ionic at ionic.de>
+
+export X2GO_SESSION="${1}"
+
+X2GO_SESSIONINFO="$(x2golistsessions | grep "${X2GO_SESSION}")"
+X2GO_SESSION_DIR="${HOME}/.x2go/C-${X2GO_SESSION}/"
+X2GO_CONF_DIR="$(x2gopath etc)"
+XSETTINGSD_PID="${X2GO_SESSION_DIR}/xsettingsd.pid"
+XSETTINGSD_LOG="${X2GO_SESSION_DIR}/xsettingsd.log"
+XSETTINGSD_USER_CONF="${X2GO_SESSION_DIR}/xsettings.conf"
+XSETTINGSD_DEFAULT_CONF="${X2GO_CONF_DIR}/xsettings.conf"
+
+export DISPLAY=":$(echo "${X2GO_SESSIONINFO}" | cut -d "|" -f3 | sed -e "s/[^0-9\-]//g")"
+
+[ -r "${XSETTINGSD_USER_CONF}" ] && XSETTINGSD_CONF="${XSETTINGSD_USER_CONF}" || XSETTINGSD_CONF="${XSETTINGSD_DEFAULT_CONF}"
+
+nohup xsettingsd -c "${XSETTINGSD_CONF}" >"${XSETTINGSD_LOG}" 2>&1 & echo "${!}" > "${XSETTINGSD_PID}"

--
Alioth's /srv/git/code.x2go.org/x2goserver.git//../..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list