aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/sbin/fndSession
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/sbin/fndSession')
-rwxr-xr-xtrunk/sbin/fndSession23
1 files changed, 23 insertions, 0 deletions
diff --git a/trunk/sbin/fndSession b/trunk/sbin/fndSession
new file mode 100755
index 0000000..e6f6b44
--- /dev/null
+++ b/trunk/sbin/fndSession
@@ -0,0 +1,23 @@
+#!/bin/sh
+#---------------------------------------------------------------
+# Project : Mandriva Linux
+# Module : sbin
+# File : fndSession
+# Version : $Id$
+# Author : Frederic Lepied
+# Created On : Mon May 30 10:43:12 2005
+# Purpose : find sessions for display managers
+#---------------------------------------------------------------
+
+umask 022
+
+for f in /etc/X11/dm.d/*.conf; do
+ EXEC=
+ FNDSESSION_EXEC=
+ eval `grep 'EXEC=' "$f"`
+ if [ -x "$EXEC" -a -n "$FNDSESSION_EXEC" ]; then
+ $FNDSESSION_EXEC
+ fi
+done
+
+# fndSession ends here