[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#252592: xfree86-common: please consider adding a local hook for Xsession handling



Package: xfree86-common
Version: 4.3.0.dfsg.1-4
Severity: wishlist

Hi!

Currently, /etc/X11/Xsession allows the user to specify her own
~/.xsession, disabling a big part of Debian's Magic.

Please consider adding a hook for ~/.xsession-local, allowing a user
to specify her own script to be executed as part, but not replacing,
Debian's xsession. This comes extremely handy if one wants to have
$HOME/bin in the X path, for example.

This script does what I mean:
/etc/X11/Xsession.d/60xfree86-common_user-xsession-local
# $Id:$

# This file is sourced by Xsession(5), not executed.

# this probably needs to go into the main Xsession script for clarity
USERXSESSIONLOCAL=$HOME/.xsession-local
ALTUSERXSESSIONLOCAL=$HOME/.Xsession-local

# If the user has a ~/.xsession-local, source it here and continue
if grep -qs ^allow-user-local-xsession "$OPTIONFILE"; then
  for XSESSIONLOCALFILE in "$USERXSESSIONLOCAL" "$ALTUSERXSESSIONLOCAL"; do
    if [ -e "$XSESSIONLOCALFILE" ]; then
      if [ -x "$XSESSIONLOCALFILE" ]; then
        . $XSESSIONLOCALFILE
	break
      fi
    fi
  done
fi

# vim:set ai et sts=2 sw=2 tw=80:

Greetings
Marc


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-janeway
Locale: LANG=C, LC_CTYPE=C

Versions of packages xfree86-common depends on:
ii  debconf                       1.4.25     Debian configuration management sy
ii  debianutils                   2.8.2      Miscellaneous utilities specific t

-- debconf information excluded



Reply to: