Unvanquished / updater

QML based updater to install, update and launch the Unvanquished game.
https://unvanquished.net/download
15 stars 7 forks source link

updater does not actually install unv:// protocol association on Linux #34

Closed FreeSlave closed 3 years ago

FreeSlave commented 7 years ago

It installs desktop file and icon, but not association. To install association add the line

x-scheme-handler/unv=unvanquished.desktop

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/

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

DolceTriade commented 7 years ago

So this is working as intended?

FreeSlave commented 7 years ago

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.

FreeSlave commented 7 years ago

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.

DolceTriade commented 7 years ago

Thanks for following up.