After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 324653 - How to change sessions?
How to change sessions?
Status: RESOLVED OBSOLETE
Product: gnome-session
Classification: Core
Component: gnome-session
2.12.x
Other All
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-20 23:20 UTC by Quim Gil
Modified: 2021-06-14 18:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Select the saved session with command line (3.43 KB, patch)
2010-01-30 15:18 UTC, Josselin Mouette
none Details | Review

Description Quim Gil 2005-12-20 23:20:50 UTC
System -> Preferences -> Sessions will allow me to create new sessions but
then... how can I choose a session different than the current one? GDM will only
let me go to the last session or GNOME.

I'd expect to have a session chooser in GDM or at least in the same window where
I'm adding new sessions...

Other information:
I'm assuming changing sessions should be possible without opening a console,
inside the desktop. If there is a way to do this I haven't found it, sorry.
Comment 1 Teppo Turtiainen 2005-12-23 20:07:36 UTC
I'm confirming this because I can't figure out a way to choose a session either. Not sure if this is a bug in gnome-session or GDM though.
Comment 2 Josselin Mouette 2006-12-13 18:06:54 UTC
Same here : http://bugs.debian.org/232080

gnome-session indeeds lacks a graphical chooser that the user could enable to choose a session upon login. Otherwise, having several sessions doesn't make much sense.
Comment 3 Vincent Untz 2007-01-08 14:50:48 UTC
Two things, I guess:

 + gdm people should change the default setting of GDM_KEY_SESSION_DESKTOP_DIR to contain a user directory so the user can have his own sessions seen by GDM

 + gnome-session should create desktop files for the sessions when creating new sessions.

Now, I removed the UI to create new sessions in HEAD for various reasons. And we have to consider the session vs autostart issue (since the autostart spec isn't session aware, and I guess most people would want to configure sessions by listing which apps to autostart...)

(Luis convinced me that this could be of some use: http://www.vuntz.net/journal/2006/11/19/403-mygnome-bits-1#c1327)
Comment 4 Vicky 2008-08-01 07:36:18 UTC
I tried to put the following lines:

exec gnome-session --choosesession=test

(of course session test had been created)

in my .xinitrc and then load in GDM the "default system session" which should point to it, but no success (the default gnome session would be started). Moreover, I tried with NX to load a custom unix session and ask again

gnome-session --choosesession=test

and no success, as before. Thus I think the issue is in gnome-session.
Comment 5 Josselin Mouette 2010-01-30 15:18:49 UTC
Created attachment 152635 [details] [review]
Select the saved session with command line

This patch doesn’t resolve the issue entirely, but it allows to choose a name for the saved session directory, instead of the "saved-session" default.

With this, plus the existing --default-session-key, you can achieve the desired results without too much pain.
Comment 6 André Klapper 2021-06-14 18:20:25 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of gnome-session, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-session/-/issues/

Thank you for your understanding and your help.