diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /lxde-base/lxde-common/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'lxde-base/lxde-common/files')
-rw-r--r-- | lxde-base/lxde-common/files/lxde | 90 | ||||
-rw-r--r-- | lxde-base/lxde-common/files/lxde-common-0.5.5-logout.patch | 14 |
2 files changed, 104 insertions, 0 deletions
diff --git a/lxde-base/lxde-common/files/lxde b/lxde-base/lxde-common/files/lxde new file mode 100644 index 000000000000..489ce2d1fe32 --- /dev/null +++ b/lxde-base/lxde-common/files/lxde @@ -0,0 +1,90 @@ +#!/bin/sh +# LXDE Xsession starter, based on Xsession shipped by x11-apps/xinit-1.0.5-r1 + +# redirect errors to a file in user's home directory if we can +for errfile in "$HOME/.lxde-errors" "${TMPDIR-/tmp}/lxde-$USER" "/tmp/lxde-$USER" +do + if ( cp /dev/null "$errfile" 2> /dev/null ) + then + chmod 600 "$errfile" + exec > "$errfile" 2>&1 + break + fi +done + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +userxkbmap=$HOME/.Xkbmap + +sysresources=/etc/X11/Xresources +sysmodmap=/etc/X11/Xmodmap +sysxkbmap=/etc/X11/Xkbmap + +rh6sysresources=/etc/X11/xinit/Xresources +rh6sysmodmap=/etc/X11/xinit/Xmodmap + + +# merge in defaults +if [ -f "$rh6sysresources" ]; then + xrdb -merge "$rh6sysresources" +fi + +if [ -f "$sysresources" ]; then + xrdb -merge "$sysresources" +fi + +if [ -f "$userresources" ]; then + xrdb -merge "$userresources" +fi + +# merge in keymaps +if [ -f "$sysxkbmap" ]; then + setxkbmap `cat "$sysxkbmap"` + XKB_IN_USE=yes +fi + +if [ -f "$userxkbmap" ]; then + setxkbmap `cat "$userxkbmap"` + XKB_IN_USE=yes +fi + +# +# Eeek, this seems like too much magic here +# +if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then + if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then + xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config /etc/X11/xorg.conf` + if [ -n "$xkbsymbols" ]; then + setxkbmap -symbols "$xkbsymbols" + XKB_IN_USE=yes + fi + fi +fi + +# xkb and xmodmap don't play nice together +if [ -z "$XKB_IN_USE" ]; then + if [ -f "$rh6sysmodmap" ]; then + xmodmap "$rh6sysmodmap" + fi + + if [ -f "$sysmodmap" ]; then + xmodmap "$sysmodmap" + fi + + if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" + fi +fi + +unset XKB_IN_USE + +# run all system xinitrc shell scripts. +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for i in /etc/X11/xinit/xinitrc.d/* ; do + if [ -x "$i" ]; then + . "$i" + fi + done +fi + +exec /usr/bin/startlxde diff --git a/lxde-base/lxde-common/files/lxde-common-0.5.5-logout.patch b/lxde-base/lxde-common/files/lxde-common-0.5.5-logout.patch new file mode 100644 index 000000000000..129fb9a5b1ad --- /dev/null +++ b/lxde-base/lxde-common/files/lxde-common-0.5.5-logout.patch @@ -0,0 +1,14 @@ +Index: lxde-common-0.5.5/Makefile.am +=================================================================== +--- lxde-common-0.5.5.orig/Makefile.am ++++ lxde-common-0.5.5/Makefile.am +@@ -20,6 +20,9 @@ images_DATA= \ + images/logout-banner.png \ + images/lxde-icon.png + ++lxlogoutdir=$(datadir)/applications/ ++lxlogout_DATA=lxde-logout.desktop ++ + lxpaneldir=$(datadir)/lxpanel/profile/LXDE + lxpanel_DATA=lxpanel/config + |