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

Bug 44537

Summary: gdm no longer offers custom session option
Product: Gentoo Linux Reporter: Tod Morrison <tod.morrison>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: minor CC: radek
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: custom.desktop -- enables custom session option in gdm

Description Tod Morrison 2004-03-12 23:26:09 UTC
I have a $HOME/.xsession file for starting my X session, gdm-2.4.4.7 doesn't give "Custom" or "Xsession" as an option. I've beat gdm into submission, so it now offers Xsession as an option, but since it's kind of hackish I except any further upgades will clobber the fix. Shouldn't it offer those sessions found in /etc/X11/gdm/Sessions by default.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 foser (RETIRED) gentoo-dev 2004-03-13 04:42:46 UTC
No, the whole session scheme changed, it now looks for .desktop files in /usr/share/xsessions . 

What did you do exactly to make it work for you ? Maybe you could go trough the docs on the gdm homepage and device a better way to make it work for you, I'd be interested in hearing about that.
Comment 2 Tod Morrison 2004-03-13 05:33:42 UTC
Created attachment 27282 [details]
custom.desktop -- enables custom session option in gdm

My first fix was hackish, this one is more consistant with how gdm is currently
configured. By default the gdm is configured with

SessionDesktopDir=/etc/X11/sessions/:/etc/X11/dm/Sessions/:/usr/share/xsessions/


and if you look in  '/etc/X11/dm/Sessions/' you'll find default.desktop,
reading /etc/X11/gdm/Xsession you'll note that this is handled differently than
others. Also you'll see hooks for a 'custom' option, which is what we want.
Basically, we need to have a file custom.desktop in '/etc/X11/dm/Sessions/'.
These files are different from say one for fluxbox or gnone in that they don't
have a "TryExec" entry. I've writen a custom.desktop by modifying
defualt.desktop that does this.
Comment 3 Radek Podgorny 2004-03-13 08:15:36 UTC
Yeah, this is exactly it. You have to copy default.desktop to custom.desktop and change the "Exec=default" to "Exec=custom". This file (custom.desktop) should be a part of the ebuild so users don't get confused and they won't have to make of these operations after upgrading...
Comment 4 foser (RETIRED) gentoo-dev 2004-04-02 09:39:30 UTC
ok i added a custom.desktop to 2.4.4.7-r1 for now.

In some way you could question having such an option by default, while it means nothing to most people and isn't even functional.

Thnx for the works.