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

Vincent Lefevre vincent at vinc17.net
Mon Nov 28 17:31:09 UTC 2016


Hi,

On 2016-11-28 17:19:33 +0100, Jens Reyer wrote:
> 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

Perhaps because you have Firefox as your default browser?

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

Well, this depends on alternatives. In any case, I don't want wine
to be run (in particular I have never run a web browser under wine,
so that there is no reason to start doing that here; note also that
I haven't even ever run any desktop application under wine, just
command-line test programs to test MPFR).

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

Probably because you chose Firefox as the default browser.

> 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;

I don't know where this comes from. FYI, I also have firefox-esr
installed, and even:

/etc/alternatives/x-www-browser -> /usr/bin/firefox-esr

> 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.

I suspect a precedence list somewhere in the user's home.
Something like that.

> 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/?

This comes from:

cventin:~> lg .local/share/applications
total 72
-rw-r--r-- 1 7020 2016-11-28 12:34:00 mimeapps.list
-rw-r--r-- 1  708 2016-05-22 22:35:19 mimeinfo.cache
-rw-r--r-- 1  206 2016-05-22 22:35:18 wine-extension-chm.desktop
-rw-r--r-- 1  213 2016-05-22 22:35:18 wine-extension-gif.desktop
-rw-r--r-- 1  208 2016-05-22 22:35:18 wine-extension-hlp.desktop
-rw-r--r-- 1  206 2016-05-22 22:35:18 wine-extension-htm.desktop
-rw-r--r-- 1  220 2016-05-22 22:35:18 wine-extension-ini.desktop
-rw-r--r-- 1  216 2016-05-22 22:35:18 wine-extension-jfif.desktop
-rw-r--r-- 1  215 2016-05-22 22:35:18 wine-extension-jpe.desktop
-rw-r--r-- 1  229 2016-05-22 22:35:18 wine-extension-msp.desktop
-rw-r--r-- 1  213 2016-05-22 22:35:18 wine-extension-png.desktop
-rw-r--r-- 1  194 2016-01-20 15:40:12 wine-extension-rtf.desktop
-rw-r--r-- 1  198 2016-05-22 22:35:18 wine-extension-txt.desktop
-rw-r--r-- 1  221 2016-05-22 22:35:18 wine-extension-url.desktop
-rw-r--r-- 1  211 2016-01-20 15:40:12 wine-extension-vbs.desktop
-rw-r--r-- 1  200 2016-01-20 15:40:12 wine-extension-wri.desktop
-rw-r--r-- 1  211 2016-05-22 22:35:19 wine-extension-xml.desktop

Note: I installed wine32 on 2016-01-07. I don't know what's specific
about 2016-05-22 (except that I had run MPFR tests under wine, but
this wasn't the first time); there was an upgrade to wine32 1.8.1-2
on 2016-05-17.

.local/share/applications/mimeinfo.cache contains:

[MIME Cache]
application/rtf=wine-extension-rtf.desktop;
application/vnd.ms-htmlhelp=wine-extension-chm.desktop;
application/winhlp=wine-extension-hlp.desktop;
application/x-mswinurl=wine-extension-url.desktop;
application/x-mswrite=wine-extension-wri.desktop;
application/x-wine-extension-ini=wine-extension-ini.desktop;
application/x-wine-extension-msp=wine-extension-msp.desktop;
application/x-wine-extension-vbs=wine-extension-vbs.desktop;
application/xml=wine-extension-xml.desktop;
image/gif=wine-extension-gif.desktop;
image/jpeg=wine-extension-jfif.desktop;wine-extension-jpe.desktop;
image/png=wine-extension-png.desktop;
text/html=wine-extension-htm.desktop;
text/plain=wine-extension-txt.desktop;

So, the important line here is:

text/html=wine-extension-htm.desktop;

I don't have any text/html line in the mimeapps.list file.

Before the change:

cventin:~> xdg-mime query default text/html
wine-extension-htm.desktop

After removing the above text/html line:

cventin:~> xdg-mime query default text/html
firefox-esr.desktop

> 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?

If I delete the ~/.wine directory, I still get firefox-esr.desktop,
and ditto if I remove the wine-related "config" files first: these
buggy config files do not reappear.

> Finally, which desktop environment are you using? Since when?

No desktop environment, just fvwm, since 1995 (well, at that time,
not on this machine :). Perhaps GNOME was initially run on the
machine just after I installed it, but that's all.

As I can't reproduce the bug with the above change for now, this may
be an obsolete bug, though I couldn't find anything in the ChangeLog
except:

wine (1.6.1-8) unstable; urgency=medium

  * Don't register mime types (closes: #327262).
[...]
 -- Michael Gilbert <mgilbert at debian.org>  Mon, 30 Dec 2013 00:05:48 +0000

but that's old.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the pkg-wine-party mailing list