Artificial Intelligence Posted March 6, 2005 Report Share Posted March 6, 2005 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 Quote Link to comment Share on other sites More sharing options...
Qchem Posted March 7, 2005 Report Share Posted March 7, 2005 Can you not just have a shell script that does a cd, followed by the launch command? You could put the script on the desktop, give it a custom icon etc. Quote Link to comment Share on other sites More sharing options...
devries Posted March 7, 2005 Report Share Posted March 7, 2005 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 Quote Link to comment Share on other sites More sharing options...
Artificial Intelligence Posted March 8, 2005 Author Report Share Posted March 8, 2005 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 Quote Link to comment Share on other sites More sharing options...
Qchem Posted March 8, 2005 Report Share Posted March 8, 2005 That looks fine to me! You'll need to chmod +x it to be able to run it though - that catches me out a lot and I've been writing scripts for a while! Quote Link to comment Share on other sites More sharing options...
Artificial Intelligence Posted March 10, 2005 Author Report Share Posted March 10, 2005 Thanks for the help :) The script is working and I'm happy :P .:=The AI Dude=:. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.