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

Bug 412003

Summary: x11-apps/xinit: support /usr/share/xsessions in chooser.sh
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: CONFIRMED ---    
Severity: enhancement CC: joakim.tjernlund, roberto.castagnola, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 301051    
Attachments: Take care of files in /usr/share/xsession

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 chooser.sh 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.

Sure.
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 <roberto.castagnola@gmail.com>

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?