Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#24959 - [xmonad] GDM and gnome session

Attached to Project: Community Packages
Opened by jon (emphire) - Wednesday, 29 June 2011, 18:24 GMT
Last edited by Balló György (City-busz) - Thursday, 05 September 2013, 16:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


I just upgraded to xmonad-0.9.2-2.1 and I noticed some changes to xmonad.desktop and xmonad.session to add xmonad as a gnome session. I had it working as one before and these new files broke it. Having made a few changes it work again though (giving the error: "failed to load session xmonad" and then logging me out when I hit OK). Also, there is no option in the GDM menu for xmonad without running in a gnome-session.

Please remove the existing xmonad.desktop and xmonad.session and add the attached files in the following locations. Then GDM offers both "xmonad" and "Gnome/xmonad" in it's menu and they both work (for me anyway).

To give credit: These files are from this package (moved), the archlinux wiki and Wey from the archlinux forms.

The files should be installed in the following locations:
xmonad-gnome-session.session -> /usr/share/gnome-session/sessions/xmonad.session
xmonad-gnome-session.desktop -> /usr/share/xsessions/xmonad-gnome.desktop
xmonad-session.desktop -> /usr/share/xsessions/xmonad.desktop
xmonad-app.desktop -> /usr/share/applications/xmonad.desktop
This task depends upon

Closed by  Balló György (City-busz)
Thursday, 05 September 2013, 16:31 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See my last comment.
Comment by sean (webframp) - Thursday, 30 June 2011, 05:00 GMT
I experience this same issue and the same basic fix worked for me. I only needed the app.desktop file, the other two files as proved by the existing package seem to work fine for me. I based my /usr/share/applications/xmonad.desktop on the metacity.desktop file:

[Desktop Entry]
Comment by jon (emphire) - Thursday, 30 June 2011, 05:44 GMT
Sean: do you get menu items in GDM drop-down for xmonad both with and without a gnome session?
Comment by sean (webframp) - Thursday, 30 June 2011, 05:49 GMT
I do not have a menu item in GDM for an xmonad only session, just the gnome-session.
Comment by jon (emphire) - Thursday, 30 June 2011, 20:58 GMT
Sean: The additional files are there to get both to show-up.
Comment by Matthijs (Keats) - Sunday, 07 August 2011, 17:40 GMT
Ran into the same problem. Fix works for me, thanks. Also, GDM displays menu-items for both xmonad with and without a gnome session.
Comment by Jelle van der Waa (jelly) - Tuesday, 31 January 2012, 14:28 GMT
Status, still a bug?
Comment by Matthijs (Keats) - Tuesday, 31 January 2012, 21:05 GMT
I'd say yes, because it happened again when xmonad was recently upgraded to 0.10-2.
Comment by Aaron DeVore (aarondevore) - Sunday, 25 March 2012, 20:29 GMT
This happens for KDM as well. The fix works, but the package needs to be changed.
Comment by Jelle van der Waa (jelly) - Sunday, 25 March 2012, 20:57 GMT
I would rather remove all nonupstream provided stuff. So i will remove the desktop/session files.
Comment by Aaron DeVore (aarondevore) - Sunday, 25 March 2012, 21:32 GMT Comment by Greg (dolby) - Monday, 19 November 2012, 07:00 GMT
Still a problem?
Comment by Balló György (City-busz) - Thursday, 05 September 2013, 16:29 GMT
I think it's reasonable to provide an xsession .desktop file for a window manager, so I added it back.

However, GNOME no longer supports changing the window manager, it's supported by GNOME Flashback only. Therefore I don't think that we should provide an unofficial 'Gnome/xmonad' session. If you want to do this on your system, it's well documented in our wiki: