Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I've been having trouble finding a definitive answer on how to do this. I've compiled and installed a window manager that is not available in the ubuntu package repositories, and now I'm attempting to add it to the gdm options menu. What's the "Ubuntu" way to do this? I'm sure there must be a 'most correct' approach. Anyone have any clues, or links to websites? I've seen a few answers in the ubuntu forums, but no-one really had a clear, "This is the right way to do it" that I found.

share|improve this question
up vote 5 down vote accepted

By gdm options menu, do you mean the list at the bottom of the login screen ?

If yes, then, as far as I know, the "correct approach" for adding a window manager to the list of session options presented to user at login time is to add a .desktop file to /usr/share/xsessions. Take an existing .desktop file there as starting point (say, gnome.desktop) and modify fields like Exec, TryExec, Icon to suit your new WM.

Since this is so obvious (by that I mean covered in the tutorials of many WM's I have tried to add), I think I haven't understood your question well. Can you confirm if you have tried this ?

share|improve this answer
This is exactly what I was looking for. I don't know how I might have missed it. Thanks! – gabe. Sep 27 '10 at 18:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.