The forum

How can I create desktop- and application menu shortcut?

Author Replies
Toadfield Sunday 17 January 2021 at 1:12
ToadfieldAnonymous

I wanna create shortcuts.

booman Friday 22 January 2021 at 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

Edited by booman


† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
Toadfield Saturday 23 January 2021 at 18:42
ToadfieldAnonymous

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

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com