You are not logged in.

#1 2013-07-23 19:32:12

saik0
Member
Registered: 2012-08-14
Posts: 11

Packaging a game that saves user data to installation directory

Kerbal Space Program looks for savegames (amongst other things) in the installation folder. My thoughts on packaging it are either

  1. Package to /opt as world writable

  2. Package to /opt. Depend on unionfs-fuse, use a wrapper script to create union in /var/run/user/$gid/ksp joining /opt/ksp and $HOME/.ksp before running the game

Offline

#2 2013-07-23 19:40:08

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: Packaging a game that saves user data to installation directory

saik0 wrote:
  1. Package to /opt as world writable

Dwarf Fortress (in community/) does something along these lines (it makes use of the games group though, which is better than making it world-writable imo. (source files: https://projects.archlinux.org/svntogit … rffortress)

Keep it simple. People that want to do something fancy with bind mounts and filesystems can still do so if they want to.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-07-23 19:40:42

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: Packaging a game that saves user data to installation directory

Package to /opt with the necessary directories made world-writable. Best option, imho, and I've seen it done on several occasions.

All the best,

-HG

Online

#4 2013-07-24 01:41:58

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Packaging a game that saves user data to installation directory

Beat the developer with a stick until he respects the XDG specification? tongue

Offline

Board footer

Powered by FluxBB