Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 566560

Summary: x11-apps/xinit - Xsession.desktop should depend on minimal USE
Product: Gentoo Linux Reporter: Lagu <felipematas>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: normal CC: wols
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lagu 2015-11-22 23:20:51 UTC
Hi, well i basically, i try to start the Xsession but i can't D: so in the logs:

/etc/X11/Sessions/Xsession: line 106: exec: xsm: don't found

well the xsession is started with this file:

/usr/share/xsessions/Xsession.desktop

and it belongs to xinit, checking the ebuild of the app:

	!minimal? (
...
		x11-apps/xsm
...
	)

src_install() {
...
	insinto /usr/share/xsessions
	doins "${FILESDIR}"/Xsession.desktop
}

The xsession files only should be installed with "-minimal", in the "..." lines i can be missed things.

Thx.
Comment 1 Lagu 2015-11-23 00:08:52 UTC
Xsession file:

if [ -x "$startup" ]; then
        exec "$startup"
elif [ -x "$HOME/.Xclients" ]; then
        exec "$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
        exec /etc/X11/xinit/Xclients
elif [ -x /etc/X11/Xclients ]; then
        exec /etc/X11/Xclients
else
        exec xsm
fi
Comment 2 Matt Turner gentoo-dev 2019-03-03 22:41:51 UTC
(In reply to Lagu from comment #1)
> Xsession file:
> 
> if [ -x "$startup" ]; then
>         exec "$startup"
> elif [ -x "$HOME/.Xclients" ]; then
>         exec "$HOME/.Xclients"
> elif [ -x /etc/X11/xinit/Xclients ]; then
>         exec /etc/X11/xinit/Xclients
> elif [ -x /etc/X11/Xclients ]; then
>         exec /etc/X11/Xclients
> else
>         exec xsm
> fi

xsm is the 5th thing it'll try. I think there's value in installing the file even without xsm.
Comment 3 Lagu 2019-03-04 02:11:15 UTC
maybe just include xsm in the depends?