We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

How to set default web browser back to stock sailfish-browser? [answered]

asked 2016-05-09 03:51:34 +0300

updated 2016-08-17 11:25:38 +0300

jiit gravatar image

I know this is odd, but I have searched and not found any tip on this. I had installed Web Pirate browser and liked it but then resources were used up so I uninstalled it but since then any url needs to be copied instead of actually opening automatically.

Any tips on this?

EDIT: a 'works for me' post is below, however it would be good to know what Web Pirate edited so that it does not require reinstalling.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by marxistvegan
close date 2016-07-10 23:54:13.414104

3 Answers

Sort by » oldest newest most voted
2

answered 2016-05-09 16:47:48 +0300

coderus gravatar image

Mimer application

edit flag offensive delete publish link more

Comments

Just looked at this, and now I see yeah a great option.

marxistvegan ( 2016-05-09 23:57:57 +0300 )edit
5

answered 2016-05-09 11:32:16 +0300

hwesselmann gravatar image

I had the same. I reinstalled WebPirate and unchecked the "make webpirate default browser" checkbox in its settings. That did the trick for me and the stock browser is default again. I uninstalled WebPirate afterwards and the defaul stays on the stock browser.

edit flag offensive delete publish link more

Comments

That worked...and odd at the same time. This is acceptable as it works for me.

Though extra points if we can find the file that is modified by web pirate :)

marxistvegan ( 2016-05-09 14:45:38 +0300 )edit
2

@marxistvegan Happy reading :) defaultbrowser.cpp

Dax ( 2016-05-09 16:31:02 +0300 )edit

@Dax touché though technically that is the file that does the modifying ;)

marxistvegan ( 2016-05-09 16:37:00 +0300 )edit
2

Yes, if I remember correctly I create two files:

1) org.harbour.webpirate.service in .local/share/dbus-1/services

2) open-url-webpirate.desktop in .local/share/applications

And I set the mimetype pointing to "open-url-webpirate.desktop" file by calling xdg-mime, when it's disabled it calls the original "open-url.desktop"

I don't change system files.

Dax ( 2016-05-09 16:45:04 +0300 )edit
3

answered 2016-05-09 06:49:23 +0300

eson gravatar image

You could probably use Mimer from OpenRepos, if you don't prefer to manually edit your...

/usr/share/applications/open-url.desktop

edit flag offensive delete publish link more

Comments

I tried this path but it listed the default browser. Seems the web pirate being 'default' in its settings holds even if removed.

marxistvegan ( 2016-05-09 14:46:39 +0300 )edit

@Dax sorry i did not check out mimer until after @coderus mentioned it, also a great option

marxistvegan ( 2016-05-09 23:58:38 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2016-05-09 03:51:34 +0300

Seen: 1,347 times

Last updated: May 09 '16