Forums

How can I create desktop- and application menu shortcut?

Auteur Réponses
Toadfield Dimanche 17 Janvier 2021 à 1:12
ToadfieldAnonymous

I wanna create shortcuts.

booman Vendredi 22 Janvier 2021 à 20:27
booman

Creating Shortcuts is pretty simple with a bash script.

 

  • Open a text editor like Gedit
  • On the first like type:  #!/bin/sh
  • On the second line type cd and the path to the game folder:  cd /home/toadfield/mygames/game/game.sh
  • Save it on your Desktop with the name of the game and sh:  game.sh
  • Test it by opening the Terminal:  Ctrl+Alt+T
  • Drag-n-Drop the game.sh you created into the terminal
  • Press Enter
  • Now the game should run or you will get errors in the output

 

If you see "no such file or directory" check your path.  It has to be exact spelling and no spaces.  Or you can use quotes for folder with spaces.  

 

Here is an example I use for a native tank game:

#!/bin/sh
cd "/home/booman/GOG Games/Zero Ballistics"
export LD_LIBRARY_PATH={$LD_LIBRARY_PATH}:./shared_libs

./tank.x86

Edité par booman


† Booman †
Mint 20.2 64-bit | Nvidia 470 | GeForce GTX 1060
Linux for Beginners | List of Linux Games | My Games
PlayOnLinux Guides | PlayOnLinux Explained
Toadfield Samedi 23 Janvier 2021 à 18:42
ToadfieldAnonymous

I don't wanna create a script,I wanna do it in PlayOnLinux itself