2009/10/23 Luca Donaggio <donag...@gmail.com>:
> I was thinking that there should be a way to remove the existing screenshot
> from a postinst script when upgrading to a new version of the app.
> I mean, some way more reliable than `rm /home/user/.cache/launch/<service
> name>.pvr`.
> This could be useful if the new version has a substantially different UI
> than before to not confuse previous users.

Yes, that would be nice. A small utility that gets the file name of
the .desktop file as parameter should be enough I believe? We could
then add something like the following to postinst:

maemo-remove-screenshot /usr/share/applications/hildon/appname.desktop

I believe that maemo-remove-screenshot would then just use the
same logic as hildon-desktop(?) to get the file name of the screenshot
and remove it. When the location changes (in the hildon-desktop source)
this utility would also know about the location change, then..

(The alternative of detecting an upgrade in the application code and
doing the removal "by hand" using take=FALSE is cumbersome)

Thomas
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to