Closed FreeSlave closed 3 years ago
So I was convinced that it's not necessarily to change mimeapps.list. Desktop should update mimeinfo.cache itself. If it does not, call update-desktop-database ~/.local/share/applications yourself. If xdg-open still does not work on unv:// links then it uses buggy provider. In this case add the line manually as described in the first comment.
So this is working as intended?
On LXDE it does not work. Looks like LXDE does not update mimeinfo.cache by itself. Even after calling update-desktop-database it's not getting fixed, because xdg-open can't handle links on LXDE the right way. I don't know about other DEs. Others say that it's ok on Unity/GNOME/KDE.
I've started thread on xdg mailing list https://lists.freedesktop.org/archives/xdg/2017-April/013898.html hoping to figure out the right way.
Thanks for following up.
It installs desktop file and icon, but not association. To install association add the line
to the 'Default Applications' section in ~/.local/share/applications/mimeapps.list and may be to the same section in ~/.config/mimeapps.list
To be even more portable updater should care about XDG_DATA_HOME. See spec https://specifications.freedesktop.org/mime-apps-spec/latest/