Trying to create a desktop starter for my bugdom build
Opened this issue · 6 comments
[Desktop Entry]
Name=Bugdom
GenericName=3D Game
Comment=Game
Exec=./home/pi/Desktop/Bugdom/build/Bugdom
Icon=/home/pi/bugdom.png
Terminal=false
Type=Application
StartupNotify=false
Categories=Game
Also doesn’t work when I remove the dot before the exec command
What's not working exactly? Are you getting any errors?
You may have to write a launcher script that cd's into the right directory so the game can find its assets. You can look at how the AUR package for Bugdom does it.
Poking @jpenguin because I think he has XP with this stuff as well.
You can either install the bugdom executable in /usr/lib/bugdom and use
cd /usr/lib/bugdom/; ./Bugdom
to launch the game or put a launcher in the same directory as the executable and data folder with
cd "$(dirname "$(readlink -f "$0")")";./Bugdom
cd to your build directory
To install
mkdir -p /usr/lib/Budom/
mv {Data,%{name}} /usr/lib/Budom/
echo -e '#!/usr/bin/sh\n\ncd /usr/lib/Budom/;./Budom' > '/usr/bin/Budom.sh'
chmod +x /Budom
or without installing
echo -e '#!/usr/bin/sh\n\ncd "cd "$(dirname "$(readlink -f "$0")")";./Bugdom' > ./Run.sh
(These cript have not been tested) Then just point the desktop file to Bugdom.sh or Run.sh