View previous topic :: View next topic |
Author |
Message |
eug2k Tux's lil' helper
Joined: 10 Feb 2004 Posts: 141
|
Posted: Sat Feb 28, 2004 7:16 pm Post subject: gnome 2.5.5 stole my other sessions |
|
|
I emerged Gnome 2.5.5 and when I logged in through gdm first I had the problem of it not find my Gnome session and dropping me to failsafe. Then I copied /usr/portage/gnome-base/gdm/files/2.4.4/Xsession to /etc/X11/gdm/ like someone told me at breakmygentoo.org mini-forums thing. But gdm does not show any of my other sessions from /etc/X11/Sessions. No openbox, no kde. Does anyone know why? _________________ I wish I had a pet penguin
way better than a pet window |
|
Back to top |
|
|
Ateo Advocate
Joined: 02 Jun 2003 Posts: 2021 Location: Republic of California
|
Posted: Sat Feb 28, 2004 8:06 pm Post subject: |
|
|
This is a GDM thing. GDM isn't seeing your other sessions. How to fix this? Hmm. Since the Gnome 2.5.5 ebuild broke my Gnome, I downgraded back to 2.4.2.. This is only an option. I'm sure there's a fix for it..
The previous version of GDM looked in /etc/X11/Sessions to list your sessions in the GDM bootsplash. I checked out gdm.conf and really couldn't find where it looks for sessions. |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Sat Feb 28, 2004 9:14 pm Post subject: |
|
|
cite="/etc/X11/gdm/gdm.conf" Quote: | # This is a directory where .desktop files describing the sessions live
# It is really a PATH style variable since 2.4.4.2 to allow actual
# interoperability with KDM. Note that <sysconfdir>/dm/Sessions is there
# for backwards compatibility reasons with 2.4.4.x
#SessionDesktopDir=/etc/X11/sessions/:/etc/X11/dm/Sessions/:/usr/share/gdm/BuiltInSessions/:/usr/share/xsessions/
# This is the default .desktop session. One of the ones in SessionDesktopDir
#DefaultSession=gnome.desktop |
Code: | $ ls /etc/X11/sessions/ /etc/X11/dm/Sessions/ /usr/share/gdm/BuiltInSessions/ /usr/share/xsessions/
ls: /etc/X11/sessions/: No such file or directory
ls: /etc/X11/dm/Sessions/: No such file or directory
/usr/share/gdm/BuiltInSessions/:
default.desktop*
/usr/share/xsessions/:
gnome.desktop* | What these .desktop files look like: Code: | $ cat /usr/share/xsessions/gnome.desktop | grep -v '\[[[:alpha:]_@]\+\]='
[Desktop Entry]
Encoding=UTF-8
Name=GNOME
Comment=This session logs you into GNOME
Exec=gnome-session
TryExec=gnome-session
# no icon yet, only the top three are currently used
Icon=
Type=Application
$ cat /usr/share/gdm/BuiltInSessions/default.desktop | grep -v '\[[[:alpha:]_@]\+\]'
[Desktop Entry]
Encoding=UTF-8
# The names/descriptions should really be better
Name=Default System Session
Comment=This is the default system session
Exec=default
# The "default" Exec is a very special one and is handled specially in
# the Xsession script, you could also have "custom" which would just run
# "~/.xsession" directly
Icon=
Type=Application |
HTH. |
|
Back to top |
|
|
eug2k Tux's lil' helper
Joined: 10 Feb 2004 Posts: 141
|
Posted: Sat Feb 28, 2004 10:28 pm Post subject: |
|
|
That doesn't explain anything I just want gdm to see my sessions files in /etc/X11/Sessions I found a value in gdm.conf that was set to /etc/X11/gdm/Sesssions and changed it to /etx/X11/Sessions but that didn't do anything. Besides I thinkg /etc/X11/gdm/Sessions is a symbolic link to /etc/X11/Sessions _________________ I wish I had a pet penguin
way better than a pet window |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Sat Feb 28, 2004 11:22 pm Post subject: |
|
|
Basically, GDM has changed from listing all the executables in /etc/X11/Sessions/ to listing all the .desktop files in the directories /etc/X11/sessions/:/etc/X11/dm/Sessions/:/usr/share/gdm/BuiltInSessions/:/usr/share/xsessions/
This allows localisation of name and comment, icons, and allows for future expansion better than the current system.
Thus if you want say an XFCE session you need to make an XFCE.desktop file using the gnome.desktop as a template. It could call /etc/X11/Sessions/xfce or just call /usr/bin/startxfce directly. |
|
Back to top |
|
|
eug2k Tux's lil' helper
Joined: 10 Feb 2004 Posts: 141
|
Posted: Sat Feb 28, 2004 11:42 pm Post subject: |
|
|
Can you tell me what I need to put into openbox.desktop to make it just run /etc/X11/Sessions/openbox. I tried doing Code: | EXEC=/etc/X11/Sessions/openbox | but that didnt do it. If I do openbox runs fine, but I also want gnome-panel to run like it does when I used /etc/X11/Sessions/openbox to run it.
EDIT:
Code: | EXEC=openbox & gnome-panel | Works but there is also a line for the background image in my old openbox session file. Also when I run openbox & gnome-panel the window list crashes and so does the desktop switcher. This happened with the old gdm and the old gnome-panel too. I can however run gnome-panel from an openbox terminal and it will work just fine. _________________ I wish I had a pet penguin
way better than a pet window |
|
Back to top |
|
|
joem Retired Dev
Joined: 20 Dec 2002 Posts: 508 Location: Bloomington, In
|
Posted: Mon Mar 08, 2004 5:11 am Post subject: |
|
|
I have added a new gdm build to cvs(2.5.90.2) which should take care of the sessions errors. I know gentoo has started adding .desktop files to their window manger ebuilds so everything will be compliant. Check out openbox 3.1-r1 for example.. |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Mar 13, 2004 3:24 pm Post subject: If you have KDE installed... |
|
|
I noticed after GDM upgrade that it had removed KDE from my session options, and for anyone else that has KDE installed too, you'll find all the .desktop files (not just for KDE but for other WMs/DEs as well) installed in /usr/kde/3.2/share/apps/kdm/sessions/
You can then copy the ones you want into /usr/share/xsessions, where GDM will pick them up and offer them as options. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
joem Retired Dev
Joined: 20 Dec 2002 Posts: 508 Location: Bloomington, In
|
Posted: Sat Mar 13, 2004 10:20 pm Post subject: Re: If you have KDE installed... |
|
|
agent_jdh wrote: | I noticed after GDM upgrade that it had removed KDE from my session options, and for anyone else that has KDE installed too, you'll find all the .desktop files (not just for KDE but for other WMs/DEs as well) installed in /usr/kde/3.2/share/apps/kdm/sessions/
You can then copy the ones you want into /usr/share/xsessions, where GDM will pick them up and offer them as options. |
https://bugs.gentoo.org/show_bug.cgi?id=40711 |
|
Back to top |
|
|
TheUNabeefer n00b
Joined: 06 Apr 2003 Posts: 52 Location: Chicago, IL
|
Posted: Sun Mar 14, 2004 11:38 pm Post subject: |
|
|
I had the same problem with getting fluxbox to work.... but here's what I got to work:
In /usr/share/xsessions/fluxbox.desktop I changed the Exec=fluxbox to Exec=/etc/X11/gdm/Sessions/fluxbox and then where it says Type=Application I changed it to Type=Script and then TADA! It works perfectly!!!
Ok, back to lurking. _________________ There he was, reigning supreme at number two...
The One, The Only, The Unabeefer.
...I am a flying cow.... worship me or DIE!!! |
|
Back to top |
|
|
|