Opening files with a disposable results in infinite loop or nothing

Gajim issue is solved, solution inside the thread

@tempmail you can maybe get your problem solved by playing in /usr/local/share/applications

This is the content of my qvm-open-in-disposable.desktop:

### Note: With this installed, typing "xdg-settings set default-web-browser qvm-open-in-dvm.desktop" will make it so that in gnome-terminal
###   that right clicking on a URL on screen, then selecting "open with" to open the link, will open it in a disposable VM (as opposed to opening it in the current VM)
###   (typing "xdg-settings set default-web-browser firefox.desktop" will put it back to normal)

[Desktop Entry]
Version=1.0
Name=QubesOS Edit In DisposableVM
Exec=/usr/bin/qvm-open-in-dvm -- %u
Terminal=false
Type=Application
Categories=Network;WebBrowser;
MimeType=application/octet-stream;application/pdf;application/qubes-untrusted-file;application/rdf+xml;application/rss+xml;application/vnd.mozilla.xul+xml;application/x-wwf;application/x-zerosize;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png;image/svg+xml;text/html;text/plain;text/xml;x-scheme-handler/about;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/unknown;
NoDisplay=true

You can see that the line starting with MimeType= seems to indicate some file associations, like application/pdf and text/plain. Maybe that’s the cause of all of this?

FWIW, at least on my “debian-minimal”-based default-dvm, the file governing the qvm-open* mime associations is:
/usr/share/qubes/xdg-override/applications/mimeapps.list

1 Like