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
Description: Disable installation of some .desktop files. Author: Jens Reyer <[email protected]> Bug-Debian: https://bugs.debian.org/845334 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -189,9 +189,6 @@ HKCR,.pdf,,2,"pdffile" HKCR,.rtf,,2,"rtffile" HKCR,.wri,,2,"wrifile" HKCR,*\shellex\ContextMenuHandlers,,16 -HKCR,chm.file,,2,"Compiled HTML Help File" -HKCR,chm.file\DefaultIcon,,2,"%10%\hh.exe,0" -HKCR,chm.file\shell\open\command,,2,"%10%\hh.exe %1" HKCR,cplfile,,2,"Control Panel Item" HKCR,cplfile\shell\cplopen,,2,"Open with Control Panel" HKCR,cplfile\shell\cplopen\command,,2,"rundll32.exe shell32.dll,Control_RunDLL ""%1"",%*" @@ -203,18 +200,8 @@ HKCR,folder\shell\open\ddeexec,,2,"[View HKCR,folder\shell\open\ddeexec,"NoActivateHandler",2,"" HKCR,folder\shell\open\ddeexec\application,,2,"Folders" HKCR,folder\shellex\ContextMenuHandlers,,16 -HKCR,hlpfile,,2,"Help File" -HKCR,hlpfile\shell\open\command,,2,"%11%\winhlp32.exe %1" -HKCR,htmlfile\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome" -HKCR,htmlfile\shell\open\ddeexec,,2,"""%1"",,-1,0,,,," -HKCR,htmlfile\shell\open\ddeexec,"NoActivateHandler",2,"" -HKCR,htmlfile\shell\open\ddeexec\Application,,2,"IExplore" -HKCR,htmlfile\shell\open\ddeexec\Topic,,2,"WWW_OpenURL" HKCR,inffile,,2,"Setup Information" HKCR,inffile\shell\install\command,,2,"%11%\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1" -HKCR,inifile,,2,"Configuration Settings" -HKCR,inifile\shell\open\command,,2,"%11%\notepad.exe %1" -HKCR,inifile\shell\print\command,,2,"%11%\notepad.exe /p %1" HKCR,lnkfile,,2,"Shortcut" HKCR,lnkfile,"NeverShowExt",2,"" HKCR,lnkfile,"IsShortcut",2,"yes" @@ -236,14 +223,6 @@ HKCR,pdffile\shell\open\ddeexec,,2,"""%1 HKCR,pdffile\shell\open\ddeexec,"NoActivateHandler",2,"" HKCR,pdffile\shell\open\ddeexec\Application,,2,"IExplore" HKCR,pdffile\shell\open\ddeexec\Topic,,2,"WWW_OpenURL" -HKCR,rtffile,,2,"Rich Text Document" -HKCR,rtffile\shell\open\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" %1" -HKCR,rtffile\shell\print\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" /p %1" -HKCR,txtfile,,2,"Text Document" -HKCR,txtfile\shell\open\command,,2,"%11%\notepad.exe %1" -HKCR,txtfile\shell\print\command,,2,"%11%\notepad.exe /p %1" -HKCR,wrifile\shell\open\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" %1" -HKCR,wrifile\shell\print\command,,2,"""%16422%\Windows NT\Accessories\wordpad.exe"" /p %1" HKCR,xmlfile,,2,"XML Document" HKCR,xmlfile\shell\open\command,,2,"""%11%\winebrowser.exe"" -nohome" HKCR,xmlfile\shell\open\ddeexec,,2,"""%1"",,-1,0,,,,"

