Re: Directory permissions for games

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2017-06-27 15:19 GMT+02:00 Rémi Verschelde <rverschelde@xxxxxxxxx>:
> 2017-06-27 15:04 GMT+02:00 Alec Leamas <leamas.alec@xxxxxxxxx>:
>>
>>
>> On 27/06/17 14:13, Rémi Verschelde wrote:
>>
>>> For what it's worth, on Mageia I have no permission problems
>>> whatsoever with crawl. This spec file works just fine:
>>>
>>>
>>> http://svnweb.mageia.org/packages/cauldron/crawl/current/SPECS/crawl.spec?view=markup
>>>
>>> Files are saved in the user dir, as expected of any modern game.
>>
>>
>> Actually, the spec stores them in %_gamesdatadir a. k. a. /usr/share/games
>> on mageia. IMHO, that's not a user directory.
>
> Yes, I mean "user files" are saved in the user dir. The game's
> original data are in /usr/share/%{?mageia:games}/crawl and should be
> accessed read-only.

Confirmed, crawl on Mageia works just fine with the default options,
and the permissions are the usual ones (755 for directories and 644
for files).

My (numerous) saves are in ~/.crawl:

[akien@cauldron ~]$ ll /usr/share/games/crawl/
total 8
drwxr-xr-x 9 root root 4096 mai   25 21:49 dat/
drwxr-xr-x 3 root root 4096 mai   26 08:00 settings/
[akien@cauldron ~]$ ll /usr/share/games/crawl/dat/
total 28
drwxr-xr-x  2 root root 4096 mai   26 08:00 clua/
drwxr-xr-x  4 root root 4096 mai   26 08:00 database/
drwxr-xr-x  2 root root 4096 mai   26 08:00 defaults/
drwxr-xr-x 13 root root 4096 mai   26 08:00 des/
drwxr-xr-x 22 root root 4096 mai   26 08:00 descript/
drwxr-xr-x  3 root root 4096 mai   26 08:00 dlua/
drwxr-xr-x  2 root root 4096 mai   26 08:00 tiles/
[akien@cauldron ~]$ ll /usr/share/games/crawl/settings/
total 88
-rw-r--r-- 1 root root  722 mai   25 21:49 0.12_monster_glyphs.txt
-rw-r--r-- 1 root root  251 mai   25 21:49 0.13_monster_glyphs.txt
-rw-r--r-- 1 root root 3543 mai   25 21:49 0.14_monster_glyphs.txt
-rw-r--r-- 1 root root  369 mai   25 21:49 0.16_monster_glyphs.txt
-rw-r--r-- 1 root root  155 mai   25 21:49 0.17_monster_glyphs.txt
-rw-r--r-- 1 root root  223 mai   25 21:49 0.18_monster_glyphs.txt
-rw-r--r-- 1 root root  792 mai   25 21:49 034_command_keys.txt
-rw-r--r-- 1 root root 1323 mai   25 21:49 052_monster_glyphs.txt
-rw-r--r-- 1 root root  466 mai   25 21:49 060_monster_glyphs.txt
-rw-r--r-- 1 root root  436 mai   25 21:49 071_monster_glyphs.txt
-rw-r--r-- 1 root root  241 mai   25 21:49 080_monster_glyphs.txt
-rw-r--r-- 1 root root  479 mai   25 21:49 0.9_monster_glyphs.txt
-rw-r--r-- 1 root root 1532 mai   25 21:49 advanced_optioneering.txt
-rw-r--r-- 1 root root 2041 mai   25 21:49 colemak_command_keys.txt
-rw-r--r-- 1 root root 1440 mai   25 21:49 dec_glyphs.txt
-rw-r--r-- 1 root root 3021 mai   25 21:49 dvorak_command_keys.txt
-rw-r--r-- 1 root root 1450 mai   25 21:49 ibm_glyphs.txt
-rw-r--r-- 1 root root 3676 mai   25 21:49 init.txt
drwxr-xr-x 2 root root 4096 mai   26 08:00 mac/
-rw-r--r-- 1 root root  943 mai   25 21:49 no_vi_command_keys.txt
-rw-r--r-- 1 root root 1451 mai   25 21:49 old_unicode_glyphs.txt
-rw-r--r-- 1 root root  317 mai   25 21:49 safe_move_shift.txt
[akien@cauldron ~]$ ll ~/.crawl/
total 32
drwxrwxr-x 2 akien akien 24576 juin  10 23:01 morgue/
drwxrwxr-x 7 akien akien  4096 juin  10 23:01 saves/

> I guess there is something broken due to `SAVEDIR="~/.crawl"
> SHAREDDIR=%{_datadir}/%{name}` which is defined in the Fedora spec
> file and not in Mageia's. Maybe it can't parse `~` as expected and
> thus overrides its *correct* default userdir value and defaults
> instead to the datadir?
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux