i want to create a desktop shortcut to a game - zandronum (doom2), wich starts a terminal window then the gui
the game is located in /home/zz/games/doom
i start it by cd to that directory and ./zandronum -iwad doom2.wad
i tried to create a doom.desktop in ~/Desktop with contents
[Desktop Entry]
Encoding=UTF-8
Name=doom
Icon=help-about
Type=Application
Terminal=True
Exec=/home/zz/games/doom/zandronum
does not work
if i create a script to launch in the home directory
#!/bin/sh
cd /home/zz/games/doom
./zandronum -iwad doom2.wad -file d2xtreme.wad -file skulltag_actors.pk3 -file brutalv20.pk3
and rightclick->copy on source
then rightclick->edit->paste link on destination (Desktop directory in spacefm)
it makes a link wich works but it doesent show the terminal window
topic title: how to create a desktop shortcut
2 posts
• Page 1 of 1
-
Posts: 73
- Joined: 20 Jan 2014
-
Posts: 73
- Joined: 20 Jan 2014
#2
finally i did what i wanted
so for a desktop shortcut that starts a terminal, runs a command and keeps it open after it finishes ...
i made a file in Desktop with this content
doom2.desktop
[Desktop Entry]
Encoding=UTF-8
Name=doom222
Exec=roxterm -e 'bash -c"cd /home/zz/games/doom && ./zandronum -iwad doom2.wad;bash"'
Icon=help-about
Terminal=true
Type=Application
Categories=System;
NoDisplay=True
if you dont want to keep terminal window open
Exec=cd /home/zz/games/doom && ./zandronum -iwad doom2.wad
simple af __{{emoticon}}__
so for a desktop shortcut that starts a terminal, runs a command and keeps it open after it finishes ...
i made a file in Desktop with this content
doom2.desktop
[Desktop Entry]
Encoding=UTF-8
Name=doom222
Exec=roxterm -e 'bash -c"cd /home/zz/games/doom && ./zandronum -iwad doom2.wad;bash"'
Icon=help-about
Terminal=true
Type=Application
Categories=System;
NoDisplay=True
if you dont want to keep terminal window open
Exec=cd /home/zz/games/doom && ./zandronum -iwad doom2.wad
simple af __{{emoticon}}__