Sailfish insists to open new netlinks with Fernschreiber 4.2.0.19/XA2

In 4.2.0 apps should be able to be more specific about which web domains they can handle, using the x-url-handler/ mimetype instead of x-scheme-handler/http(s). That would probably help with this problem.

6 Likes

So I have freshly installed SFOS 4.2.0.21 on the XA2 and it also does not show me the browser, for selection to open a link.
is there maybe a patch in the meantime that you can install ?

Can I read / intercept the link that is to be forwarded to an app? i.e. copy it to the clipboard?

I was able to work around this now with a trick. first installed Webcat and Mimer. Then the web browser in Miner changed to Webcat. This then also appears in the selection list. and then changed back to Browser. Now everything is as it should be. How long? remains to be seen.

This should help you.

Hey sailing fishers,

after I resized the /home/ vol incorrectly I flashed the new release yesterday. And from the beginning the Browser is not working correctly resulting in the open-with error described in this thread above.
After reading this thread I kinda already tried the solutions but without success. I can see the default browser in the openwith window but nothing happens if click it after. It seems like the browser is not opening and the desktop file is not working correctly

Anyone has the same?

I added open-url.desktop from

ls -la /usr/share/applications/|grep -E “open-url|h-browser”
-rw-rw-r-- 1 root root 466 Oct 4 18:07 open-url.desktop
-rw-r–r-- 1 root root 709 Jun 10 02:00 sailfish-browser.desktop

cat open-url.desktop

[Desktop Entry]
Type=Application
Name=Browser
Icon=icon-launcher-browser
NoDisplay=true
X-MeeGo-Logical-Id=sailfish-browser-ap-name
X-MeeGo-Translation-Catalog=sailfish-browser
MimeType=text/html;x-scheme-handler/http;x-scheme-handler/https;
X-Maemo-Service=org.sailfishos.browser.ui
X-Maemo-Object-Path=/ui
X-Maemo-Method=org.sailfishos.browser.ui.openUrl

cat sailfish-browser.desktop

[Desktop Entry]
Type=Application
Name=Web Browser
X-MeeGo-Logical-Id=sailfish-browser-ap-name
X-MeeGo-Translation-Catalog=sailfish-browser
Icon=icon-launcher-browser
Exec=/usr/bin/sailjail -p sailfish-browser.desktop /usr/bin/sailfish-browser %U
Comment=Sailfish UI application
MimeType=text/html;application/xhtml+xml;application/xml;text/xml;x-scheme-handler/http;x-scheme-handler/https;
X-Maemo-Service=org.sailfishos.browser.ui
X-Maemo-Object-Path=/ui
X-Maemo-Method=org.sailfishos.browser.ui.openUrl
[X-Sailjail]
Permissions=WebView;Audio;Location;Privileged;Internet;Downloads;Documents;Pictures;Videos;Music;Sharing;RemovableMedia;MediaIndexing
OrganizationName=org.sailfishos
ApplicationName=browser

After creating and rebooting I tried

update-desktop-database $HOME/.local/share/applications/
devel-su update-desktop-database /usr/share/applications/

This results in the browser beeing shown as an option but it seems not to open correctly cause nothing happens after clicking.

I do not know how to debug it further cause the desktop file seems to work the browser is opening from the menu. The problem seems to be the open-url file

Diffrent mimer actions with no success either

Please share some wisdom for a new fish

Cheers,

kk

1 Like

the solution suggested by @carmenfdezb and @attah worked only for some time on my device: in less than a day open.desktop.url got deleted by itself. Tried many times, rebooting or not doesn’t affect this.

With my non-existent knowlwdge I feel this is not a problem with individual apps. It is about the browser disappearing from the list, due to some process erasing open.desktop.url from the system.

If Sailfish is left with only one option to open links it will use that one, in the OP case, Fernschreiber. @lumen it yould be interesting to know if you have other files other than
harbour-fernschreiber-open-url.desktop
in
/home/nemo/.local/share/applications

As @thigg says, this shouldn’t be about Fernschreiber…

If confirmed, may the title be tweaked?
I hope Jolla files (and fixes) the bug for what it is and does not overlook it as a Fernschreiber problem.

In the meanwhile, does anyone have an idea to make carmenfdezb 's solution stay? Thanks for any help!