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

Bug#371870: xprint: all printer entries in mozilla are gone



I wrote
> As far as XPSERVERLIST goes, you're doing the right thing setting it in
> your user environment. Since startx is a manual approach, it doesn't
> seem to be using the automatic /etc/X11/Xsession.d/ scripts (despite
> what /etc/X11/Xsession says), so their effect has to be also invoked by
> hand.  If you didn't want to hardwire :64, you could use
> 	export XPSERVERLIST="`/etc/init.d/xprint get_xpserverlist`"
> or
> 	. /etc/X11/Xsession.d/92xprint-xpserverlist


More details about this.  startx (and xinit) should be accessing
/etc/X11/Xsession and its scripts automatically, that is XPSERVERLIST
should be set automatically, even from startx.  I presume this did not
happen for you because you have ~/.xinitrc set up to manually start the
programs you want.  In this case your .xinitrc will be used instead of
/etc/X11/xinit/xinitrc, and so /etc/X11/Xsession will not be invoked
(unless you invoke it yourself inside .xinitrc).

If this is your scenario and you're only using .xinitrc to start
programs and set the user environment, then you might find it better to
copy that .xinitrc into ~/.Xsession (or .xsession) instead and then
delete ~/.xinitrc.  This will enable the default Xsession to be set up
(including XPSERVERLIST), and will then go on to start your desired
programs.

Drew





Reply to: