aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/fndSession
blob: 65dbc19a2f6083c2698087883e4d573df3b34a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
#---------------------------------------------------------------

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