Sublime Forum

Sublime opens Chromium instead of System Default Browser

#1

Since I dup (distro update openSuSE from 15.3 to 15.4 incl KDE 5.24.4), when SublimeText (build 4126) wants access to the inet, it opens link (subscribe, buy) in Chromium, which is NOT the ‘default browser’ anywhere on my system, ever.
Until dup, ST opened such interactions with the web in the Default browser, Firefox.
I’ve looked everywhere I can think of, but nothing changes.
Still opens in Chromium.
I do Not have ‘view in browser’ packages installed.
Right-clicking on anything, does Not present the option to ‘open in browser’.
It only happens when ST it’s self wants to open a web site/page.

Any Ideas?
Landis.

0 Likes

#2

We’re just using gtk_show_uri. Perhaps GTK needs to be configured on your end.

0 Likes

#3

Thanks for reply.
I don’t find any Gtk2, 3 or 4 settings that invoke Chromium or any browser.
Can you, will you point me in a direction? what setting on KDE would you suggest?
Landis.

0 Likes

#4

Perhaps https://bbs.archlinux.org/viewtopic.php?id=140028 may help you out.

1 Like

#5

I recently changed the xdg settings (widget.use-xdg-desktop-portal.file-picker and …mime-handler) in Firefox about:config to get the new KDE 5.24.4 to use native file chooser instead of gtk filechooser.
Could the settings changed in Firefox actually change the system xdg and Not just in firefox?
I would change it back in firefox, but it would require me to remember what I did for a long time, until SublimeText decides to access the web again.
Hmm…
Thanks, Landis.

0 Likes

#6

I’m going to change the Firefox about:config setting: widget.use-xdg-desktop-portal.open-uri to 1 (assuming ‘2’ is gtk default), and see if that changes the system xdg setting. I did not think about firefox actually changing the system settings. Always thought changes I made in firefox, and I make a lot over the years, affected firefox only.
Gramma Always said, ‘if you learned something today, it was a good day’.
Thanks.

0 Likes

#7

Do you know How I can ‘force’ ST to launch a browser?
maybe ask it to ‘register’ or get info about something like a package…
I’ll try it.

  • yes, if I go to ST>Help>Purchase License, ST launches browser
    but, it’s still launching Chromium. I suppose I’ll need to reboot, later. Too busy right now to close all I have open.
    Will up date this if it works, so others will have this knowledge.
    Landis.

I believe, with quick glance, this confirms FF is changing the system xdg settings

0 Likes

#8

Wish I would have read whole above article before I change xdg settings in FF. Because I didn’t, I don’t know what ‘default-web-browser’ would have reported with the following command:
landis@1linux-v5581:~>xdg-settings get default-web-browser
FireFox.desktop

0 Likes