Ask / Submit

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-01-08 20:34:04 +0200

Here's the summary of how I solved it - thanks a lot to @scharelc, all the credits go to you!

I queried the current status and found that text/html should be handled by webcat, which was no longer installed

xdg-mime query default text/html

This should give a result like the following, in my case it referred to webcat.

open-url.desktop

Depending on your desired configuration, other values may of course be valid. If the result is not what you expect it to be, you can change it with this command

xdg-mime default open-url.desktop text/html  #open-url.desktop is the default value, this will trigger sailfish-browser to open html, you may replace this with your desired config file though. Refer to xdg-mime --manual for further details.

For some reason, ~/.config contained a file named mimeapps.list. This seems to have caused some inconsistencies when setting the new mime handler. The file contained two lines

[Default Applications]
text/html=open-url.desktop

Thus, the query for nemo resulted in

which: no  in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin)
open-url.desktop

After removing ~/.config/mimeapps.list, then applying this command again

xdg-mime default open-url.desktop text/html

the query result is now as expected. http/https links to html documents are now handled by sailfish-browser again.

Here's the summary of how I solved it - thanks a lot to @scharelc, all the credits go to you!

I queried the current status and found that text/html should be handled by webcat, which was no longer installed

xdg-mime query default text/html

This should give a result like the following, in my case it referred to webcat.

open-url.desktop

Depending on your desired configuration, other values may of course be valid. If the result is not what you expect it to be, you can change it with this command

xdg-mime default open-url.desktop text/html  #open-url.desktop is the default value, this will trigger sailfish-browser to open html, you may replace this with your desired config file though. Refer to xdg-mime --manual for further details.

For some reason, ~/.config contained a file named mimeapps.list. This seems to have caused some inconsistencies when setting the new mime handler. The file contained two lines

[Default Applications]
text/html=open-url.desktop

Thus, the query for nemo resulted in

which: no  in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin)
open-url.desktop

After removing ~/.config/mimeapps.list, then applying this command again

xdg-mime default open-url.desktop text/html

the query result is now as expected. http/https links to html documents are now handled by sailfish-browser again.

Mimer did not do the trick for me, it allowed applying changes, but resulted in an additional line in the query response

which: no  in (/usr/local/bin: [....]

I did not try Mimer after removing mimeapps.list again, it might have worked then.