View Full Version : HowTo: Start games directly from GDM

June 9th, 2006, 05:25 AM
Hello all. This howto will tell you how to start a game right from the sessions menu of GDM. I do this because I run Xgl and compiz, and the performance of games while they are running is pretty ******. What this does is instead of starting a window manager, and then starting a game, you can start the game directly. It's extremly easy to do, saves some memory when playing the game, and makes using Xgl/compiz and gaming on the same box much easier. I'm also a memory *****, and figure, if I can save a few megs by not using a window manager at all, why not?

All you have to do is create a game.desktop entry in /usr/share/xsessions . So for example we'll use quake4.
Open a terminal and go to /usr/share/xsessions

cd /usr/share/xsessions

Use a text editor of your choice and create a quake4.desktop file.

sudo gedit quake4.desktop

Now create the Entry.

[Desktop Entry]
Comment=Start Quake 4 straight

And there we go. Restart GDM
sudo /etc/init.d/gdm restart and it should appear under sessions.

I Hope this basic howto was at least somewhat usefull. Enjoy

December 7th, 2012, 02:07 PM

I tried to do this with LightDM and Lord of the Rings Online. I am using Ubuntu 12.10. However, it doesn't show up in the selection menu in LightDM.
Here is my file:

sudo cat /usr/share/xsessions/DHDRO.desktop
[Desktop Entry]
Name=Der Herr der Ringe Online
Comment=Der Herr der Ringe Online spielen

Any help is much appreciated.