Page 1 of 1

[Linux Mint] Run from menu?

Posted: Thu Nov 29, 2012 5:20 am
by pWEN
Hello! I'm a Linux Mint n00b with a simple question. How can I run FTL from the "start" menu? I've installed FTL to /opt, as recommended, and I can run the sh script from the folder just fine. But the entry I've added to the OS menu doesn't seem to launch it. Can anyone tell me what I'm doing wrong? Thanks!

Re: [Linux Mint] Run from menu?

Posted: Thu Nov 29, 2012 8:45 pm
by UltraMantis
Does this help? Tips and Tricks for Linux Mint
Dunno much about linux, you may have to dig through the help files or check the mint forum.

Re: [Linux Mint] Run from menu?

Posted: Thu Nov 29, 2012 9:52 pm
by johannes
For me it was useful to change the FTL script in the FTL root directory adding a new second line

Code: Select all

cd `dirname $0`
the file now looks like this:

Code: Select all

#!/bin/bash

cd `dirname $0`

# enter the game directory
cd ./data


# run FTL
./FTL "$@"
Reason is that window managers often use the home directory as working directory.

Re: [Linux Mint] Run from menu?

Posted: Fri Nov 30, 2012 4:34 am
by pWEN
UltraMantis:

Thank you, I'm sure that will come in handy!

johannes:

Thanks, that did the trick!! Now I'm having a similar issue with Frozen Synapse, so let's see if I can apply my new knowledge...