Bug#785231: game-data-packager: update KDE icon cache after "dpkg -i"

Alexandre Detiste alexandre.detiste at gmail.com
Thu Jun 25 10:31:56 UTC 2015


2015-06-25 10:54 GMT+02:00 Simon McVittie <smcv at debian.org>:
>I'm not particularly keen on introducing more hook points for "run some
>scripts" if we don't really need to.

Well, I'm now tempted to close this or tag it wontfix
and instead write my own wrapper script in /home/$user/bin
and left GDP untouched; I end up typing to many things
all the time anyway.

This would also relief me from having my modified
etc/game-data-packager.conf showing up in my
git diff all the time and forbidding
me from doing "git commit -a".

> Those are appropriate at "when you have built the .deb"-time...
>
>> - kbuildsycoca4 for the ones too lazy to try to fix their broken DE
>>   (well then if 3 packages are generated, the cache is checked 3 times :-| )

> ... but this is "when you install the .deb", not necessarily
> identical. It also has the disadvantage that you noted.

Indeed, two sets of hooks would had been needed:
- 1 per package
- 1 at the end

> In any case, if KDE needs some arbitrary code execution as root when icons
> are updated

kbuildsycoca4 run as user; but that's a detail

> that's a bug, which will affect every .deb (not just ours).

I guess that some kind of race that only happen when you open the menu right
away in the few seconds after the package is installed.

Alexandre



More information about the Pkg-games-devel mailing list