2010/8/7 Vincent Untz <vuntz@opensuse.org>:
Le samedi 07 août 2010, à 15:31 +0200, Cristian Morales Vega a écrit :
2010/8/7 Vincent Untz <vuntz@opensuse.org>:
Hi,
I'm facing three cases where many packages should do something in %post/%postun but usually don't do anything because it's some manual work, and I want to provide macros to make it easier to fix this.
The three cases are:
+ when installing a .desktop file, update-desktop-database should be called
I should reverify, but I think KDE ignores it (it has its own MIME cache and has to look at .desktop files anyway for the "InitialPreference" field). There is something really using it?
At least all the glib-based world uses it. I could change the question to this one: "What doesn't use it except KDE?" :-)
Ok. But notice that you want to put in scriplets what is now in SuSEconfig.desktop-file-utils... you probably want to also put SuSEconfig.glib2 since it's very related (MIME database vs default applications, dependent of MIME types) Would be great to do both things in a single pass. Right now each one is doing a full scan of every .desktop file.
+ when installing an icon in the hicolor theme, gtk-update-icon-cache should be called
Wasn't decided it was a bad idea (https://bugzilla.novell.com/395056 and related, plus http://old-en.opensuse.org/Packaging/Scriptlet_Snippets#GTK.2B_icon_cache)? GTK should be fixed instead? KDE doesn't needs anything similar...
SuSEconfig is not called if zypper is used, so the old way doesn't work.
I know. But wasn't it causing serious problems in the installer?
And we use this in GTK+ to improve performance. If somebody knows how to improve performance when looking for icons without using this cache, I'd be happy to talk to upstream about changing this.
Again, from memory. KDE runs its cache system when it starts, and then a daemon continuously looks for changes. I have never listen a complain about KDE start time. Not sure how this relates to pure Qt apps...
(Btw, the best long-term solution is some trigger in rpm when a file get installed in a directory, but I've been waiting for this for a long time and I don't see it moving...)
I didn't look at them in detail, but aren't "Collections" (http://lists.opensuse.org/zypp-devel/2010-06/msg00004.html) what's needed?
Could work, but I'm unsure if it's okay to have collections that cover all packages?
No idea. But it seems things are starting to move here. If something is going to change, since we have eight months until 11.4 perhaps we could aim to the correct, long-term solution? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org