lxdm.xsession.tamir
This commit is contained in:
parent
86ec434668
commit
38ad744e5c
|
@ -0,0 +1,48 @@
|
|||
#!/bin/bash
|
||||
|
||||
# use bash for "exec -l", howto run login shell by /bin/sh ?
|
||||
|
||||
if [ $# -eq 1 -a -n "$1" ]; then
|
||||
LXSESSION=$1
|
||||
else
|
||||
# default session
|
||||
LXSESSION=/usr/bin/startlxde
|
||||
fi
|
||||
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||
|
||||
if [ -f /etc/X11/xinit/xinitrc-common ]; then
|
||||
# fedora
|
||||
. /etc/X11/xinit/xinitrc-common
|
||||
exec -l bash -c "$LXSESSION"
|
||||
elif [ -x /etc/X11/xinit/Xsession ]; then
|
||||
# fedora
|
||||
exec /etc/X11/xinit/Xsession "$LXSESSION"
|
||||
elif [ -x /etc/X11/Xsession ]; then
|
||||
# mandriva, debian, ubuntu
|
||||
exec /etc/X11/Xsession "$LXSESSION"
|
||||
elif [ -x /etc/X11/xinit/xinitrc ]; then
|
||||
#suse
|
||||
export WINDOWMANAGER=$LXSESSION
|
||||
exec -l bash -c /etc/X11/xinit/xinitrc
|
||||
else
|
||||
# unknown, user should custom /etc/lxdm/xinitrc self
|
||||
if [ -x /etc/lxdm/xinitrc ]; then
|
||||
. /etc/lxdm/xinitrc "$LXSESSION"
|
||||
fi
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/* ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS";
|
||||
then
|
||||
eval "$(dbus-launch --sh-syntax --exit-with-session)"
|
||||
fi
|
||||
|
||||
exec -l bash -c "$LXSESSION"
|
||||
fi
|
||||
|
|
@ -11,7 +11,8 @@ http://downloads.sourceforge.net/project/lxdm-init-script/lxdm-init-script-0.0.1
|
|||
http://dl.dropbox.com/u/4813005/lxdm/lxdm-themes.tar.gz
|
||||
lxdm.in.patch
|
||||
lxdm.conf.in.patch
|
||||
lxdm.pam)
|
||||
lxdm.pam
|
||||
Xsession)
|
||||
|
||||
build() {
|
||||
|
||||
|
@ -28,6 +29,7 @@ build() {
|
|||
make
|
||||
make DESTDIR=$PKG install
|
||||
cp ../lxdm.pam $PKG/etc/pam.d/lxdm
|
||||
cp ../Xsession $PKG/etc/lxdm/
|
||||
mkdir $PKG/etc/rc.d
|
||||
mkdir $PKG/etc/rc.d/init.d
|
||||
install -m 755 $SRC/lxdm-init-script/lxdm $PKG/etc/rc.d/init.d/$name
|
||||
|
|
Loading…
Reference in New Issue