[pkg-wine-party] Bug#845334: wine32: breaks xdg-open, which wants to start wine and crashes

Jens Reyer jre.winesim at gmail.com
Mon Nov 28 16:19:33 UTC 2016


control: tags -1 + moreinfo unreproducible


I can't reproduce the behavior you described.

Here these two commands always open foo.html in firefox:
$ xdg-open foo.html
$ wine winebrowser foo.html

And this command opens foo.html in Wine's Internet Explorer (no
crash/error):
$ wine iexplore.exe foo.html


On 22.11.2016 16:53, Vincent Lefevre wrote:
> Additional info:
> 
> cventin:~> xdg-mime query default text/html
> wine-extension-htm.desktop
> 
> and Wine had added a file
> 
> /home/vlefevre/.local/share/applications/wine-extension-htm.desktop

It's a bit more complicated, and I'm still struggling to understand it:

Indeed I have the same file
~/.local/share/applications/wine-extension-htm.desktop.
This gets created e.g. when I execute wineboot && winecfg (I'm not sure
what exactly triggers it).

I could prevent creation of this and some other .desktop files with
attached patch, which removes some lines from wine.inf, so that
winemenubuilder doesn't create the .desktop files in
~/.local/share/applications/.

However this has not the effects that I'd expect (despite previously
cleaning old .desktop and mimecache/-list files from /home, and doing a
reboot):

winebrowser still uses the system browser (I'd expect it to just fail
because it doesn't know which application to use).

So I can neither reproduce your issue or confirm your suspicion that
wine-extension-htm.desktop is the culprit, nor do I see the benefit of
having that .desktop file.


More details:

Previously I had:
$ xdg-mime query default text/html
userapp-Firefox-1M35PY.desktop

This was due to an entry in .config/mimeapps.list. I deleted that file,
and so far it wasn't recreated.


Now I have:
$ xdg-mime query default text/html
firefox-esr.desktop;firefox.desktop;

This stays independently of any changes by Wine.
It originates from files in /usr/share/applications/. Specifically
firefox-esr.desktop and gnome-mimeapps.list.
btw, chromium.desktop and mimeinfo.cache from that directory seem to
have no effect.


Vincent:

I'm interested in learning where the wine* association that you
have is saved to. Can you check the mimecache/-list files in
~/.config
~/.local/share/applications/
/usr/share/applications/?

When you've found the entry, try removing it or the whole file. Does
this help permanently?

What happens if you delete and recreate your ~/.wine directory?

Finally, which desktop environment are you using? Since when? (I use
Gnome here and recently reinstalled my system, but copied over
some configuration in /home.)

Greets
jre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: desktop-integration.patch
Type: text/x-patch
Size: 2618 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-wine-party/attachments/20161128/536ef2ce/attachment.bin>


More information about the pkg-wine-party mailing list