[Debian GNUstep maintainers] Bug#643305: Bug#646031: theunarchiver: creates $HOME/GNUstep/Library directory
Yavor Doganov
yavor at gnu.org
Fri Oct 21 10:07:48 UTC 2011
tags 643305 + wontfix
notforwarded 643305
forwarded 646031 http://code.google.com/p/theunarchiver/issues/detail?id=397
tags 646031 + patch
thanks
On Thu, Oct 20, 2011 at 08:00:18PM +0200, Jakub Wilk wrote:
> Package: theunarchiver
> When I unpack RAR archives with unar, it creates
> $HOME/GNUstep/Library directory:
> I wish it didn't clutter my home directory with useless directories...
This directory is not useless, and gnustep-base makes sure to create
it as many methods rely on its existence. In this case, unar is not
using it directly or accessing the defaults database, but it uses the
NSDate class, which needs to check the timezone upon initialization,
which in turn uses NSUserDefaults to retrieve any user-defined one,
etc, etc.
In theory, with some effort it could be possible to eradicate this
behaviour as it really smells like bad design, but right now I have
more important problems at hand than having a discussion with upstream
regarding this minor issue.
If you wonder why the directory is not hidden, it is because GNUstep
software is installed there in the USER domain.
The attached patch should do the desired cleanup, but:
- Please test extensively, it is potentially dangerous.
- There could be a race condition in the unlikely case that the same
user is running `unar' and another GNUstep program simultaneously.
- It uses a GNUstep-specific function, so should be wrapped in
appropriate conditionals (#ifdef GNUSTEP...) if the same code is
compiled/run on Muck OS X.
More information about the pkg-GNUstep-maintainers
mailing list