diff options
author | Frederic Lepied <flepied@mandriva.com> | 2005-05-30 02:41:23 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2005-05-30 02:41:23 +0000 |
commit | 9a8edcb384c95f46759bae6946ef5b143a8cd36c (patch) | |
tree | b99266d81cc19c07bc2a64d89657ea31fa364390 /sbin | |
parent | a6429372e460a17446be5a8c3933e9af2de13110 (diff) | |
download | common-data-9a8edcb384c95f46759bae6946ef5b143a8cd36c.tar common-data-9a8edcb384c95f46759bae6946ef5b143a8cd36c.tar.gz common-data-9a8edcb384c95f46759bae6946ef5b143a8cd36c.tar.bz2 common-data-9a8edcb384c95f46759bae6946ef5b143a8cd36c.tar.xz common-data-9a8edcb384c95f46759bae6946ef5b143a8cd36c.zip |
use the new framework in /etc/X11/dm.d.
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/fndSession | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/sbin/fndSession b/sbin/fndSession index 39f8c31..65dbc19 100755 --- a/sbin/fndSession +++ b/sbin/fndSession @@ -1,17 +1,21 @@ #!/bin/sh -# fndSession (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com> -## FindSession for kdm and gdm. +#--------------------------------------------------------------- +# 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 +#--------------------------------------------------------------- -[ -x /usr/sbin/chksession ] || { - echo "I can't find /usr/sbin/chksession" - echo "check your installation" - exit 1 -} +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 -if [ -e /usr/share/config/kdm/kdmrc ];then - /usr/sbin/chksession -k -fi - -if [ -d /etc/X11/dm/Sessions ];then - /usr/sbin/chksession -g -fi +# fndSession ends here |