Putting my new FreeBSD 9.3 desktop online ....

Polytropon freebsd at edvax.de
Sun Aug 17 09:51:52 UTC 2014


On Sun, 17 Aug 2014 11:08:23 +0200, flo at snakeoilproductions.net wrote:
> Maybe I'm missing the point here entirely, but xdm uses $HOME/.xsession.
> A missing .xsession has quite the same symptoms, and since XFCE works 
> fine after startx,
> which indeed uses $HOME/.xinitrc, you might try
> % echo 'exec /usr/local/bin/startxfce4' >$HOME/.xsession
> and then restart xdm.

This is what I suggested, except getting rid of the "two files
problem" by calling .xinitrc via .xession (which is what xdm
executes).

Content of ~/.xsession:

	#!/bin/csh
	source ~/.cshrc
	exec ~/.xinitrc

Content of ~/.xinitrc:

	#!/bin/sh
	# ... your other startup initializers here ...
	exec /usr/local/bin/startxfce4

Typically, both files have +x attribute, but that's probably
not even needed (like the #!/bin/sh line of .xinitrc, it just
makes clear what "language" it is written in).

This should work. It works with a lot of window managers I've
tested so far. I have not tested with Xfce, though. ;-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list