I know this has been solved, just wanted to contribute how I solved it:
Step 1: Extract the FTL folder to wherever you choose. I personally chose to install it into
/opt/ as other games already installed there, my steps where:
a) Extract into /home/username/FTL
b) Open Terminal (CTRL+ALT+T)
c) sudo mv /home/username/FTL /opt/
Step 2: Create the Launcher Link. Create a new text file, and copy the following:
Code: Select all
[Desktop Entry]
Type=Application
Version=1.03.0
Name=FTL
Comment=Awesome Spacefaring Roguelike
Icon=/opt/FTL/data/exe_icon.bmp
Exec=/opt/FTL/FTL
Categories=Game;Simulation
Note that both the Icon and Execution paths should point to wherever
you have extracted the FTL folder.
Save the text file as
FTL.desktop
Step 3: Copy/Move the
.desktop file to
/usr/share/applications/
sudo cp FTL.desktop /usr/share/applications/FTL.desktop
This will make the link show up in the Ubuntu launcher, but it still won't work because of a little bothersome detail...
Step 4: Inside the FTL folder, there is a script also named FTL. Either edit it or make a copy (for safety I copied it into FTL.sh):
a) sudo cp /opt/FTL/FTL /opt/FTL/FTL.sh
b) sudo gedit /opt/FTL/FTL.sh
And change the following:
The problem is the line that reads:
# enter the game directory
cd ./data
As it is attempting to launch the app from the wrong path (relative path). Change it to this:
# enter the game directory
cd /opt/FTL/data
And it should work now.
Also, remember to update the
.desktop file if you create a copy of the launcher script. In my case:
a) sudo gedit /usr/share/applications/FTL.desktop
Change:
Exec=/opt/FTL/FTL
Into:
Exec=/opt/FTL/FTL.sh
And that's it! Hope it works for you!