Imported Upstream version 0.2.0
[debian/lxdm.git] / data / lxdm.in
1 #!/bin/sh
2
3 [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
4
5 if [ -z "$LANG" -a -e /etc/sysconfig/language ]; then
6         . /etc/sysconfig/language
7         if [ -n "$RC_LANG"]; then
8                 LANG=$RC_LANG
9         fi
10 fi
11
12 if [ -n "$LANG" ]; then
13         export LANG
14 fi
15
16 [ -f /etc/sysconfig/desktop ] && . /etc/sysconfig/desktop
17 [ -f /etc/sysconfig/windowmanager ] && . /etc/sysconfig/windowmanager
18
19 if [ -n "$DEFAULT_WM" ]; then
20         PREFERRED=$DEFAULT_WM
21 fi
22
23 if [ -n "$DESKTOP" ]; then
24         export DESKTOP
25 fi
26
27 if [ -n "$PREFERRED" ]; then
28         export PREFERRED
29 fi
30
31 exec @prefix@/sbin/lxdm-binary $*