Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412003 - x11-apps/xinit: support /usr/share/xsessions in
Summary: x11-apps/xinit: support /usr/share/xsessions in
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 3 votes (vote)
Assignee: Gentoo X packagers
Keywords: PATCH
Depends on:
Blocks: 301051
  Show dependency tree
Reported: 2012-04-14 16:59 UTC by Michał Górny
Modified: 2021-12-07 22:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Take care of files in /usr/share/xsession (chooser.patch,1.50 KB, patch)
2020-12-07 22:24 UTC, Roberto Castagnola
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-04-14 16:59:07 UTC
/usr/share/xsessions is the new common way of storing X11 sessions. It is supported by most of the new DMs, and it would be great if our supported it as well -- so that xdm would support it too.

I can provide a patch if there is interest in that.
Comment 1 Matt Turner gentoo-dev 2019-03-03 23:18:20 UTC
(In reply to Michał Górny from comment #0)
> I can provide a patch if there is interest in that.

Comment 2 Matt Turner gentoo-dev 2019-05-15 18:16:35 UTC
Feel free to re'Cc x11@ if you write that patch.
Comment 3 Roberto Castagnola 2020-12-07 22:24:20 UTC
Created attachment 677194 [details, diff]
Take care of files in /usr/share/xsession

Signed-off-by: Roberto Castagnola <>

The patch also takes care of the case that XSESSION contains spaces (a command with arguments).
I made my best to write it in a posix complaint way, but since I'm not expert on this, some command may need a fix.
Comment 4 Joakim Tjernlund 2021-06-04 15:38:57 UTC
can this move forward as is?