Nikita V. Youshchenko wrote:
>> - dpkg refuses to convert normal directory to a symlink on upgrade, so I
>> can't provide an upgrade path.
> 
> There is a standard solution for this.
> 
> Add to preinst something similar to
> 
> if [ -d /usr/share/FBReader/default/ ]; then
>       mkdir -p /etc/FBreader
>       mv /usr/share/FBReader/default/* /etc/FBreader
>       rmdir /usr/share/FBReader/default/
>       ln -s /etc/FBreader /usr/share/FBReader/default/
> fi

Hm, thanks.

>> - fbreader is not a system service/program/daemon, it's a end-user
>> program, and different users may want to use different layouts;
>>
>> I would suggest introducing reading some settings from user home
>> directory. I have just forwarded this suggestion to upstream BTS.
> 
> Although you are probably correct, having system-wide default will not 
> hurt. And it has an advantage that it could be done at packaging level 
> now, without any code altering.
> Btw, systems in question, where default settings are not good (phones, etc) 
> are commonly single user.

This makes sense. Ok, I will wait for 0.10.4 anyway, and upstream comments.

Also, I'm a bit scary to introduce such a diversion from upstream directory
structure, because in case we will decide to change/revert something (or
upstream will decide) converting things can easily became more complex.

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Maintainer

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to