relative path with relative command

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

relative path with relative command

Postby BinarySoul on Sat Jun 15, 2013 9:20 am

Hello,

i need some help with linux "realtive Paths".
What i want to do:
making a launcher with the followring command:
Code: Select all
dosbox '/home/binarysoul/Games/aGame/linux/install/game.exe'  -exit -conf '/home/binarysoul/Spiele/aGame/linux/conf/settings.conf'

but with relative paths, starting from /aGame/GameLauncher, That just works, if i walk the path to the gamefolder manually in console (cd Games, cd aGame ...)

how could i make a launcher, that start "dosbox" in the place, where the launcher is placed?
so that i can use relative paths like this:

Code: Select all
dosbox '../install/game.exe'  -exit -conf '../conf/settings.conf'

(if i do so, it does not work and dosbox uses the default configuration file.)

clear:
what i need is a icon for doubleclick, that makes:
Code: Select all
cd Games
cd aGame
dosbox '../install/game.exe'  -exit -conf '../conf/settings.conf'
BinarySoul
Level 1
Level 1
 
Posts: 1
Joined: Sat Jun 15, 2013 9:10 am

Linux Mint is funded by ads and donations.
 

Return to Other Topics

Who is online

Users browsing this forum: No registered users and 4 guests