Jump to content

Problems with specific shortcuts commands


Recommended Posts

Hello there

 

I've some games that mysteriously needs to be in the same directory to launch.

Example a little game I bought 'riotball', I can only launch it when I browsed to its directory and click the 'riotball' Icon or in terminal 'cd' to its dicretory and launch the game from their. I've tried making links to my desktop but it aren't working, I've even tried making symblinks (ln -s) via the terminal but it aren't working either.

 

So my question is how do I make a proper command in the link which 'cd' to its location and afterwards launch the game.

 

I was thinking something in the line:

 

Create Launcher

Name: [Riot Ball ]

Generic name: [........... ]

Comments: [................. ]

Command: [ /home/orion/.Games/riotball_full <name of the game launcher>]

 

Type: [Link ]

Icon: [ ................] [.... ] Run in Terminal

 

 

Or '/home/orion/.Games/riotball_full/riotball_fc3 --workdir=/home/orion/.Games/riotball_full' ??? Hmmm...this one is not working either...

 

Any Ideas?

 

 

 

Thanks

Link to comment
Share on other sites

Command: [ /home/orion/.Games/riotball_full <name of the game launcher>]

 

That folder isn't in your $PATH. A link should work and is the easiest solution. Normally you would have a bin folder in /home/<your name> that is in the $PATH (if not create it, /home/your name/bin) so you would need to ln -s /home/orion/.Games/riotball_full <name of the game launcher> /home/your name/bin. Now just put the name of the game launcher in the command field in the shortcut and it should work.

 

PS: If you don't want to ceate a bin folder in your /home/your name/ just put the link in /usr/bin

Link to comment
Share on other sites

I've never tried building a script before, so a little help will be appriciated :)

 

Is it something like:

Create a <name>.sh file open it with a text editor then

 

#!/bin/bash

cd /home/orion/.Games/riotball_full
/home/orion/.Games/riotball_full/riotball_fc3

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...