Author Topic: Installing MegaGlest using the Flatpak  (Read 2507 times)

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 472
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Installing MegaGlest using the Flatpak
« on: 5 February 2019, 20:54:36 »
I tried out the MegaGlest Flatpak last night.

Worked well, but a couple things worth noting:

1. It doesn't use an existing $HOME/.megaglest folder for user data. The path is $HOME/.var/app/org.megaglest.MegaGlest/.megaglest
2. It doesn't come with 7z and there's a warning when I enter the mod center that files can't be downloaded or installed.
3. MG doesn't see a mod if it's being pointed to with a symlink (only tried with .megaglest/techs

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 207
    • View Profile
Re: Installing MegaGlest using the Flatpak
« Reply #1 on: 27 March 2019, 01:35:38 »
I tried out the MegaGlest Flatpak last night.

Worked well, but a couple things worth noting:

1. It doesn't use an existing $HOME/.megaglest folder for user data. The path is $HOME/.var/app/org.megaglest.MegaGlest/.megaglest
2. It doesn't come with 7z and there's a warning when I enter the mod center that files can't be downloaded or installed.
3. MG doesn't see a mod if it's being pointed to with a symlink (only tried with .megaglest/techs

I think points 1 and 3 are related to this: http://docs.flatpak.org/en/latest/conventions.html#xdg-base-directories
Basically, flatpak is sandboxing applications (or trying to*), and this means giving applications their own directory to write to and not giving them access to any other folders. This means megaglest user files are being stored in a special xdg-spec directory. This is to avoid nasty situations such as... https://www.reddit.com/r/linux/comments/2sjjr3/warning_to_steam_users_dont_try_to_move_your/.

Flatpak is probably also blocking symlinks in these directories, because otherwise applications can just jump out of the sandbox (e.g. by writing their own symlinks). The only solution to this is to give flatpak-megaglest-build home directory privileges (which standard megaglest has anyway).

*Here's someone else's opinions on flatpak's attempts to sandbox: https://flatkill.org/
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 472
  • Debian Linux user
    • View Profile
    • Andy Alt's home page

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 207
    • View Profile
Re: Installing MegaGlest using the Flatpak
« Reply #3 on: 27 May 2023, 00:34:34 »
Ah yes, how convenient  ;)
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

 

anything