Installer for linux menu entry (generating .desktop file)

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

ev21
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 30, 2019 3:09 pm
Contact:

Installer for linux menu entry (generating .desktop file)

Post by ev21 »

TL;DR
A simple setup script should be provided in the factorio linux package so users can then simply start the game from the game menu.
What ?
A setup script could generate a Factorio.desktop file with the correct paths to icon and starting point.

It is usually placed in “~/.local/share/applications” or “/usr/share/applications/” depending whether you want the launcher to be accessible only for local account or for everyone.

example:

Code: Select all

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Factorio
Comment=Best Game ever!
Icon=/home/eddy/apps/factorio/data/base/thumbnail.png
Exec=/home/eddy/apps/factorio/bin/x64/factorio
Categories=Game;
Desktop Entry Specification
Why ?
  • It would safe some time.
  • Some users don't know how to do it by hand.
  • It's trivial to implement.
  • execution point is well hidden in a sub-sub-folder factorio/bin/x64/factorio
Last edited by ev21 on Sat Feb 01, 2020 11:56 am, edited 1 time in total.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Installer for linux menu entry (generating .desktop file)

Post by ssilk »

I think it depends too much on the Linux distribution someone uses, if that really works.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
ev21
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 30, 2019 3:09 pm
Contact:

Re: Installer for linux menu entry (generating .desktop file)

Post by ev21 »

Do you know a Linux Desktop that doesn't implement the Desktop Entry Specification? I think all relevant ones do so.
The installer could still be optional.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Installer for linux menu entry (generating .desktop file)

Post by ssilk »

Hm. Interesting. (Last Linux I had in hand: 2010 :D )
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 3259
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Installer for linux menu entry (generating .desktop file)

Post by BlueTemplar »

I thought MacOS was quite similar ? ( "*nix"... )
BobDiggity (mod-scenario-pack)
Post Reply

Return to “Ideas and Suggestions”