Bug#337650: x11-common: run_parts utility misused in /etc/X11/Xsession?
Package: x11-common
Version: 6.8.2.dfsg.1-4
Followup-For: Bug #337650
I too have encountered the same problem. I was trying to get
'xscreensaver' to launch on session start, but it was never invoked no
matter where I put the command (.xsession, .Xsession, .gnomerc). After
poring over the startup scripts, I found the same culprit as Mr.
Farrauto, but for a different reason.
'run_parts' is intended to actually execute the scripts in a
given directory. However, /etc/X11/Xsession (and /etc/gdm/Xsession as
well, BTW) want the scripts *enumerated*, not run. This is because
Xsession sources the scripts so that they can pass information between
each other via shell/environment variables. Thus, it would appear that
run_parts should be passed the '--list' argument to get the desired
behavior.
Thus, in the files /etc/X11/Xsession and /etc/gdm/Xsession, the
line:
SESSIONFILES=$(run_parts $SYSSESSIONDIR)
should probably be changed to:
SESSIONFILES=$(run_parts --list $SYSSESSIONDIR)
Schwab
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages x11-common depends on:
ii debconf 1.4.51 Debian configuration management sy
ii debianutils 2.15.1 Miscellaneous utilities specific t
ii lsb-base 3.0-9 Linux Standard Base 3.0 init scrip
-- debconf information excluded
Reply to: