diff options
Diffstat (limited to 'x11-misc/lightdm/files')
-rw-r--r-- | x11-misc/lightdm/files/Xsession | 69 | ||||
-rw-r--r-- | x11-misc/lightdm/files/lightdm | 8 | ||||
-rw-r--r-- | x11-misc/lightdm/files/lightdm-1.0.6-pkglibexec.patch | 25 | ||||
-rw-r--r-- | x11-misc/lightdm/files/lightdm-1.2.0-fix-configure.patch | 10 | ||||
-rw-r--r-- | x11-misc/lightdm/files/lightdm-autologin | 10 | ||||
-rw-r--r-- | x11-misc/lightdm/files/session-wrapper-lightdm.patch | 13 |
6 files changed, 135 insertions, 0 deletions
diff --git a/x11-misc/lightdm/files/Xsession b/x11-misc/lightdm/files/Xsession new file mode 100644 index 0000000..5da041e --- /dev/null +++ b/x11-misc/lightdm/files/Xsession @@ -0,0 +1,69 @@ +#!/bin/sh +# +# LightDM wrapper to run around X sessions. + +echo "Running X session wrapper" + +# Load profile +for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do + if [ -f "$file" ]; then + echo "Loading profile from $file"; + . "$file" + fi +done + +# Load resources +for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do + if [ -f "$file" ]; then + echo "Loading resource: $file" + xrdb -nocpp -merge "$file" + fi +done + +# Load keymaps +for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do + if [ -f "$file" ]; then + echo "Loading keymap: $file" + setxkbmap `cat "$file"` + XKB_IN_USE=yes + fi +done + +# Load xmodmap if not using XKB +if [ -z "$XKB_IN_USE" ]; then + for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do + if [ -f "$file" ]; then + echo "Loading modmap: $file" + xmodmap "$file" + fi + done +fi + +unset XKB_IN_USE + +# Run all system xinitrc shell scripts. +xinitdir="/etc/X11/xinit/xinitrc.d" +if [ -d "$xinitdir" ]; then + for script in $xinitdir/*; do + echo "Loading xinit script $script" + if [ -x "$script" -a ! -d "$script" ]; then + . "$script" + fi + done +fi + +# Load Xsession scripts +xsessionddir="/etc/X11/Xsession.d" +if [ -d "$xsessionddir" ]; then + for i in `ls $xsessionddir`; do + script="$xsessionddir/$i" + echo "Loading X session script $script" + if [ -r "$script" -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then + . "$script" + fi + done +fi + +echo "X session wrapper complete, running session $@" + +exec $@ diff --git a/x11-misc/lightdm/files/lightdm b/x11-misc/lightdm/files/lightdm new file mode 100644 index 0000000..6286d6a --- /dev/null +++ b/x11-misc/lightdm/files/lightdm @@ -0,0 +1,8 @@ +#%PAM-1.0 +auth optional pam_env.so +auth include system-login +auth required pam_nologin.so +account include system-login +password include system-login +session optional pam_loginuid.so +session include system-auth diff --git a/x11-misc/lightdm/files/lightdm-1.0.6-pkglibexec.patch b/x11-misc/lightdm/files/lightdm-1.0.6-pkglibexec.patch new file mode 100644 index 0000000..ef208a7 --- /dev/null +++ b/x11-misc/lightdm/files/lightdm-1.0.6-pkglibexec.patch @@ -0,0 +1,25 @@ +Install dir: + /usr/libexec/lightdm-guest-session-wrapper + /usr/libexec/lightdm-set-defaults + /usr/libexec/lightdm/gdmflexiserver + +Due to the following change, pkglibexec_SCRIPTS is invalid: + http://git.savannah.gnu.org/cgit/automake.git/commit/?id=9ca632642b006ac6b0fc4ce0ae5b34023faa8cbf + +--- + utils/Makefile.am | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/utils/Makefile.am b/utils/Makefile.am +index 41df48b..ee527cf 100644 +--- a/utils/Makefile.am ++++ b/utils/Makefile.am +@@ -1,6 +1,7 @@ + bin_PROGRAMS = dm-tool + libexec_PROGRAMS = lightdm-set-defaults +-dist_pkglibexec_SCRIPTS = gdmflexiserver ++ldmlibexecdir = $(libexecdir)/@PACKAGE@ ++dist_ldmlibexec_SCRIPTS = gdmflexiserver + + dm_tool_SOURCES = \ + dm-tool.c diff --git a/x11-misc/lightdm/files/lightdm-1.2.0-fix-configure.patch b/x11-misc/lightdm/files/lightdm-1.2.0-fix-configure.patch new file mode 100644 index 0000000..c8c795e --- /dev/null +++ b/x11-misc/lightdm/files/lightdm-1.2.0-fix-configure.patch @@ -0,0 +1,10 @@ +--- configure.ac~ 2012-04-23 12:12:44.000000000 +0100 ++++ configure.ac 2012-04-23 12:25:51.050999668 +0100 +@@ -93,6 +93,7 @@ + PKG_CHECK_MODULES(LIBLIGHTDM_QT, [ + QtCore + QtDBus ++ QtGui + ]) + QT4_BINDIR=`$PKG_CONFIG Qt --variable bindir` + AC_CHECK_TOOLS(MOC, [moc-qt4 moc],, [$QT4_BINDIR:$PATH]) diff --git a/x11-misc/lightdm/files/lightdm-autologin b/x11-misc/lightdm/files/lightdm-autologin new file mode 100644 index 0000000..9d165d6 --- /dev/null +++ b/x11-misc/lightdm/files/lightdm-autologin @@ -0,0 +1,10 @@ +#%PAM-1.0 +auth optional pam_env.so +auth required pam_nologin.so +auth required pam_permit.so +account include system-login +password include system-login +session include system-auth +# For the keyring to unlock with autologin, you need to set an empty +# password on the keyring. +#Keyring=session optional pam_gnome_keyring.so auto_start diff --git a/x11-misc/lightdm/files/session-wrapper-lightdm.patch b/x11-misc/lightdm/files/session-wrapper-lightdm.patch new file mode 100644 index 0000000..9f41816 --- /dev/null +++ b/x11-misc/lightdm/files/session-wrapper-lightdm.patch @@ -0,0 +1,13 @@ +Index: lightdm-1.0.6/data/lightdm.conf +=================================================================== +--- lightdm-1.0.6.orig/data/lightdm.conf ++++ lightdm-1.0.6/data/lightdm.conf +@@ -65,7 +65,7 @@ + #user-session=default + #allow-guest=true + #guest-session=UNIMPLEMENTED +-#session-wrapper=lightdm-session ++session-wrapper=/etc/lightdm/Xsession + #display-setup-script= + #greeter-setup-script= + #session-setup-script= |