Xonotic Forums
[NEED HELP] How to create a (desktop) link to the autobuild game? (Fedora) - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [NEED HELP] How to create a (desktop) link to the autobuild game? (Fedora) (/showthread.php?tid=9702)



How to create a (desktop) link to the autobuild game? (Fedora) - NoClue - 06-03-2023

I feel silly, I recently switched to Fedora. I'm trying to create a link to xonotic on my desktop but for whatever reason it doesn't work. I tired it with:

Code:
ln -s /home/noclue/Downloads/xonotic/xonotic-linux-glx /home/noclue/desktop/xonotic


It would create a link on my desktop however the link just wouldn't work.
I then tried it by rightclicking on Desktop and creatining a link to programm then select the xonotic-linux-glx file.  If i run this file in the terminal i see that xonotic tries to exec some files but it doesn't start.

Can someone help a noob telling how to create a link on desktop that starts the autobuild? If i head to the folder and clicking the file the game will run but i just can't seem to get a shortcut to work.


RE: How to create a (desktop) link to the autobuild game? (Fedora) - Julius - 06-04-2023

You can try creating your own .desktop file in $HOME/.local/share/applications

I'm using two of them:



Xonotic-GLX.desktop:

Code:
[Desktop Entry]
Type=Application

Name=Xonotic-GLX 0.8.5
GenericName=AFPS game
Comment=Arena FPS powered by DarkPlaces engine (GLX backend)

Exec=bash -c "vblank_mode=0 /media/almacen/jul_Apps/Xonotic-0.8.5/xonotic-linux-glx.sh"
Path=/media/almacen/jul_Apps/Xonotic-0.8.5
Icon=/home/julius/.jul-media/icons/xonotic.png

Categories=Shooter;Game;

StartupNotify=false
Terminal=false



Xonotic-SDL.desktop:

Code:
[Desktop Entry]
Type=Application

Name=Xonotic-SDL 0.8.5
GenericName=AFPS game
Comment=Arena FPS powered by DarkPlaces engine (SDL2 backend)

Exec=bash -c "vblank_mode=0 /media/almacen/jul_Apps/Xonotic-0.8.5/xonotic-linux-sdl.sh"
Path=/media/almacen/jul_Apps/Xonotic-0.8.5
Icon=/home/julius/.jul-media/icons/xonotic.png

Categories=Shooter;Game;

StartupNotify=false
Terminal=false



RE: How to create a (desktop) link to the autobuild game? (Fedora) - Julius - 06-04-2023


.png   xonotic.png (Size: 7.36 KB / Downloads: 30)


RE: How to create a (desktop) link to the autobuild game? (Fedora) - NoClue - 06-04-2023

Ty that did the trick Smile