Skip to content

Compliance with permission models on Linux installs #2971

@alexpyattaev

Description

@alexpyattaev

Would it be possible to make Zero-K.exe to use the standard linux directories?
This would imply the following changes:

  • Store the game preferences files (player setup, hotkeys, unit settings, campaign progress) in $HOME/.config
  • Store the game downloaded files (maps, engine, replays, whatever else the game downloads post-install) in $HOME/.cache

This would make packaging Zero-K for linux distros a whole lot easier to accomplish, as well as to achieve compliance with distro requirements for package behavior. This would, in turn, help with ZK popularity on linux desktops quite a bit.

I am quite sure that a good way to detect if this behavior should be triggered is to check if the directory where Zero-K.exe is located is writable. There is already a check for it in the code, so the modifications would be truly minimal.

Once this is done I can make packages for at least a few popular distros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions