On Jan 3, 2017 8:51 AM, "Jens Reyer" <[email protected]> wrote:
control: tags -1 + patch On 03.01.2017 13:16, Vincent Lefevre wrote: > Not tried yet, but even if the .wine directory already exists, > wine-extension-*.desktop files can be re-created when wine is run. > This is what has just happened, as I got: > > -rw-r--r-- 1 vlefevre vlefevre 218 2017-01-03 13:02:23 wine-extension-pdf.desktop > > and without a default for application/pdf, I get: > > cventin:~> xdg-mime query default application/pdf > wine-extension-pdf.desktop > > I don't know what is the cause, perhaps the upgrade I did in the > morning, where wine was upgraded. I still don't know *exactly* what triggers the recreation, but I think it happens on certain Wine updates, and if relevant parts of wine.inf changed. More importantly I think I found a good place to fix this: Attached patch blacklists the creation for htm, txt and pdf. It looks like as if this keeps the Wine internal associations intact, so e.g. Wine applications are still able to open pdf's with evince here. And as intended it prevents the association for the native applications to Wine, so xdg-open still uses evince directly. I think we all agree this is the wanted behavior, especially for freshly created Wine prefixes. The only point I'm unsure about the wanted behavior is on installing a Windows pdf reader: Some people might want that to get their default also for the native system (e.g. xdg-open), because they always require a specific feature from Windows Adobe Acrobat. Others might install it and use it from time to time, but would generally prefer e.g. evince. Currently this patch would work for the latter, because it always prevents the creation of desktop associations for pdf's. This meets my personal preference. What do others think? Besides that I want to look a bit more into this to understand winemenubuilder better, and then discuss it with upstream. Any tests or feedback is welcome. Greets jre _______________________________________________ pkg-wine-party mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-wine-party You may want to consider jpg and png as well, as they will annoyingly open in iexplore.

