Linux - shouldn't write to its own directory
Brought to you by:
fabdouglas
After opening the deck builder and clicking on a card, a card image is downloaded to /tbs/mtg/images under magic project's directory. Thus, if magic-project is installed for all users where they don't have write privelages, card images aren't displayed at all. Magic-project should write these to a user's home folder, something like ~/.magic-project/tbs/mtg/images
Logged In: YES
user_id=161099
Originator: NO
the TBS images dir may exceed 200Mo! It should be interresting to share these pictures with all users. I've moved this topic in the feature request tracker since it's not really a bug. I've also have to consider the settings files, all downladed files, all compiled filed files from XML, and the database cache...
For this moment, there is no solution. This feature would be implemented in a v1.x+ version.
Logged In: YES
user_id=1653558
Originator: YES
Well, on non-Windows operating systems (and even Vista now?) it's a very bad idea for applications to write to their own install directories. I imagine running with user privileges on Windows XP would produce the same problem (no one does that because so many applications do this sort of thing, though).
Anyway, thanks for thinking about this.
Logged In: YES
user_id=1653558
Originator: YES
Okay, better idea, according the FHS:
Per-user settings in ~/.magic-project/ (users' home directories)
Downloaded card images in /var/games/magic-project (see: http://www.pathname.com/fhs/pub/fhs-2.3.html#VARGAMESVARIABLEGAMEDATA )
It's part of the FHS and all users can write to /var/games/, so magic-project doesn't have to write to its own directory AND all users can share downloaded card images. This way it would be easy to distribute packages of magic-project (so it could be in linux distro's repositories, currently it's unpackagable because it needs to write to its own directory)