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: 5,265

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: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

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

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
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


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

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

stqn
Member
Registered: 2010-03-19
Posts: 1,189
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