Bug#655031: alien-arena: link creation from /usr/share/games/alien-arena/data1 fails; permission denied

Ansgar Burchardt ansgar at 43-1.org
Thu Jan 12 07:59:17 UTC 2012


reopen 655031
thanks

Michael Gilbert <michael.s.gilbert at gmail.com> writes:
>> The alien-arena wrapper script tries to make a link from /usr/share/games
>> /alien-arena/data1 to "$HOME/.config/alien-arena" which fails.
>> Creating the link by hand fails as well. It succeeds with sudo, tough.
>
> Your permissions on that directory structure must somehow be set as
> unwritable by your own account.  You'll have to fix that yourself.
>
> $ chmod a+w $HOME/.config/alien-arena
>
> should fix it.  If not, $HOME/.config itself isn't writable and you'll
> need to fix that similarly.

No, it looks like a bug in the wrapper script: if
$HOME/.config/alien-arena does not exist then alien-arena will be a
symlink to /usr/share/games/alien-arena/data1.  I guess this symlink
should be created inside the alien-arena directory instead, that is it
needs to mkdir -p $HOME/.config/alien-arena first.

In addition the wrapper should probably only try to do this if the
directories (the symlink) do not exist already and use "set -e".

Regards,
Ansgar





More information about the Pkg-games-devel mailing list