Page 1 of 1

Installer for linux menu entry (generating .desktop file)

Posted: Fri Jan 31, 2020 7:28 pm
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

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

Posted: Sat Feb 01, 2020 10:32 am
by ssilk
I think it depends too much on the Linux distribution someone uses, if that really works.

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

Posted: Sat Feb 01, 2020 10:59 am
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.

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

Posted: Sat Feb 01, 2020 11:43 am
by ssilk
Hm. Interesting. (Last Linux I had in hand: 2010 :D )

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

Posted: Sat Feb 01, 2020 12:20 pm
by BlueTemplar
I thought MacOS was quite similar ? ( "*nix"... )