Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 2172  / 1 Year ago, tue, december 20, 2022, 10:40:04

I've installed FTL: Faster Than Light on my girlfriend's Lubuntu machine and created a .desktop file for it. Strangely, the program won't launch via its menu entry under 'Games'.



If I navigate to /home/andi/.local/share/applications/ via pcmanfm and double click on FTL Faster Than Light.desktop the game launches without a problem. I know the menu entry is generated through the .desktop file so why won't it launch from the menu?



Here's the .desktop file I created: FTL Faster Than Light.desktop


More From » lubuntu

 Answers
4

Based on your response to Alex L.'s comment, it sounds like FTL is looking for various things in your current working directory, so if you navigate using a filebrowser or using cd, it works. Since the menu doesn't do that, there's something that it can't find.



Try editing the .desktop file so the Exec line looks like this instead:



sh -c "cd /home/andi/.local/share/FTL/ && ./FTL"


That will switch directories first, and should let FTL find everything it needs to start.


[#33724] Thursday, December 22, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
;