I'm using gdm and gnome, but I would like to be able to run a shell
script as part of session startup, in order to
a) Set environment variables etc.
b) Start a lot of programs that I don't want to have to manually
configure gnome to start. I want these programs whether or not
I'm in gnome.
Currently, .xsessionrc is started at step 40 of Xsession.d. This allows
for use A, but not really for use B.
In particular, I had my .xsessionrc starting a terminal, and just wasted
a thourougly embarrassing amount of time trying to figure out why,
despite gpg-agent being started, GPG_AGENT_INFO was not set. (Not
thinking to start a second terminal and try it there.)
Some solution that would let me accomplish B would be appreciated.
At the moment, the only way to do it seems to be to make one's window
manager into a wrapper script.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages x11-common depends on:
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii debianutils 3.4 Miscellaneous utilities specific t
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
x11-common recommends no packages.
x11-common suggests no packages.
-- Configuration Files:
/etc/X11/Xsession [Errno 2] No such file or directory: u'/etc/X11/Xsession'
-- debconf information excluded
--
see shy jo
Am 2010-09-01 15:31:26, schrieb Joey Hess:
> I'm using gdm and gnome, but I would like to be able to run a shell
> script as part of session startup, in order to
>
> a) Set environment variables etc.
> b) Start a lot of programs that I don't want to have to manually
> configure gnome to start. I want these programs whether or not
> I'm in gnome.
>
> Currently, .xsessionrc is started at step 40 of Xsession.d. This allows
> for use A, but not really for use B.
>
> In particular, I had my .xsessionrc starting a terminal, and just wasted
> a thourougly embarrassing amount of time trying to figure out why,
> despite gpg-agent being started, GPG_AGENT_INFO was not set. (Not
> thinking to start a second terminal and try it there.)
>
> Some solution that would let me accomplish B would be appreciated.
> At the moment, the only way to do it seems to be to make one's window
> manager into a wrapper script.
I use the ~/.xsession file and it works with XDM, WDM, GDM and KDM.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
##################### Debian GNU/Linux Consultant ######################
Development of Intranet and Embedded Systems with Debian GNU/Linux
itsystems@tdnet France EURL itsystems@tdnet UG (limited liability)
Owner Michelle Konzack Owner Michelle Konzack
Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix
<http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/>
Jabber linux4m...@jabber.ccc.de
ICQ #328449886
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Joey, does that suit your needs?
Mraw,
KiBi.