Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
lxdm
lxdm-0.2.0-common.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lxdm-0.2.0-common.patch of Package lxdm
diff -uNr old-lxdm//data/LoginReady.in lxdm/data/LoginReady.in --- old-lxdm//data/LoginReady.in 2010-03-28 16:19:18.000000000 +0200 +++ lxdm/data/LoginReady.in 2010-03-31 21:28:11.802208667 +0200 @@ -1,3 +1,2 @@ #!/bin/sh -# -# Note: this is a sample and will not be run as is. +test -x /etc/X11/xdm/Xsetup && exec /etc/X11/xdm/Xsetup diff -uNr old-lxdm//data/PostLogout.in lxdm/data/PostLogout.in --- old-lxdm//data/PostLogout.in 2010-03-28 16:19:18.000000000 +0200 +++ lxdm/data/PostLogout.in 2010-03-31 21:28:11.803209493 +0200 @@ -1,3 +1,2 @@ #!/bin/sh -# -# Note: this is a sample and will not be run as is. +test -x /etc/X11/xdm/Xreset && exec /etc/X11/xdm/Xreset diff -uNr old-lxdm//data/PreLogin.in lxdm/data/PreLogin.in --- old-lxdm//data/PreLogin.in 2010-03-28 16:19:18.000000000 +0200 +++ lxdm/data/PreLogin.in 2010-03-31 21:28:11.803209493 +0200 @@ -1,3 +1,2 @@ #!/bin/sh -# -# Note: this is a sample and will not be run as is. +test -x /etc/X11/xdm/Xstartup && exec /etc/X11/xdm/Xstartup diff -uNr old-lxdm//data/Xsession lxdm/data/Xsession --- old-lxdm//data/Xsession 2010-03-28 16:19:18.000000000 +0200 +++ lxdm/data/Xsession 2010-03-31 21:28:11.804180915 +0200 @@ -1,43 +1,26 @@ #!/bin/bash -# use bash for "exec -l", howto run login shell by /bin/sh ? +failsafe="xterm -ls -T Failsafe -geometry 80x24+0+0" +trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO +shopt -s execfail -if [ $# -eq 1 -a -n "$1" ]; then - LXSESSION=$1 -else # default session - LXSESSION=/usr/bin/startlxde -fi +LXSESSION=/usr/bin/startlxde +test $# -eq 1 -a -n "$1" && LXSESSION=$1 + +export WINDOWMANAGER=$LXSESSION +test -x /etc/X11/xdm/Xsession && exec /etc/X11/xdm/Xsession "${LXSESSION}" +test -x /etc/X11/xinit/xinitrc && exec -l $SHELL -c /etc/X11/xinit/xinitrc -if [ -x /etc/X11/xinit/xinitrc-common ]; then -# fedora - . /etc/X11/xinit/xinitrc-common - if ! [ -z "$XDG_SESSION_COOKIE" ]; then - CK_XINIT_SESSION= - elif [ -x /usr/bin/ck-launch-session -a -z "$CK_XINIT_SESSION" ]; then - CK_XINIT_SESSION="/usr/bin/ck-launch-session" - fi - exec -l $SHELL -c "$CK_XINIT_SESSION \"$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 $SHELL -c /etc/X11/xinit/xinitrc -else # unknown, user should custom /etc/lxdm/xinitrc self - if [ -x /etc/lxdm/xinitrc ]; then - . /etc/lxdm/xinitrc - fi - if ! [ -z "$XDG_SESSION_COOKIE" ]; then - CK_XINIT_SESSION= - elif [ -x /usr/bin/ck-launch-session ]; then - CK_XINIT_SESSION="/usr/bin/ck-launch-session" - fi - exec -l $SHELL -c "$CK_XINIT_SESSION \"$LXSESSION\"" +test -s /etc/lxdm/xinitrc && . /etc/lxdm/xinitrc + +if ! test -z "$XDG_SESSION_COOKIE" ; then + CK_XINIT_SESSION= +elif test -x /usr/bin/ck-launch-session ; then + CK_XINIT_SESSION="/usr/bin/ck-launch-session" fi +exec -l $SHELL -c "$CK_XINIT_SESSION \"$LXSESSION\"" +# failsafe +exit 1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor