Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-07-30 18:58:15

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Web-Links Open In Xed

Mint 19

When i click a link in a dialog box, the webpage opens in xed text editor, instead of opening in web-browser.
Same problem affects links in my email client, geary.

Chromium is set as my default browser in Preferred Applications.
xdg-open at CLI opens links in Chromium as expected.

xdg-open http://google.com

How to fix?

Last edited by johnywhy (2018-07-30 18:59:22)


arch xfce x86_64

Offline

#2 2018-07-30 20:59:43

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: Web-Links Open In Xed

Maybe you should try this command:

sudo update-alternatives --config x-www-browser

See what's your default browser on the list and change it if needed.

Offline

#3 2018-07-30 21:01:46

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

i get:

# update-alternatives --config x-www-browser
There is only one alternative in link group x-www-browser (providing /usr/bin/x-www-browser): /usr/bin/chromium-browser
Nothing to configure.

What to do?

thx

Last edited by johnywhy (2018-07-30 21:02:08)


arch xfce x86_64

Offline

#4 2018-07-30 21:21:09

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: Web-Links Open In Xed

OK, so the problem is somewhere else. Hmm, maybe check xfce4-mime-settings and see what file types are xed and Chromium associated with? Check "text/html" for example.

Anyway, you should wait for somebody else with a better solution :)

You can try to reinstall Chromium.

Last edited by Spass (2018-07-30 21:21:37)

Offline

#5 2018-07-30 21:28:55

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

Spass wrote:

check xfce4-mime-settings and see what file types are xed and Chromium associated with?

bingo!
But the thing to check wasn't xed and Chromium associations. The thing to check was http/html.

i set text/html to Chromium. Now http links open a new tab in Chromium. smile

However, tbh, i don't think this is a real fix, because what's happening (i think) is that the OS is pulling down the entire webpage as an html file, and then decides (based on my mime setting) to open that file with chromium. Ie, i think the mime editor sets default apps for file-types, not link-types. I noticed there's a lot of disk activity when i click the web-link.

Update: Better: Set application/x-extension-htm and application/x-extension-html to Chromium. That opens the link in almost chrome instantly, with little to now disk activity. Tbh, i think that suffers from same flaw as text/html (the OS is looking at the file-type, instead of the link-type). But at least it doesn't download the whole file.

So, although this works, would be great to learn the correct method.

Last edited by johnywhy (2018-07-30 22:14:37)


arch xfce x86_64

Offline

#6 2018-07-30 22:15:49

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

@Spass, can you check your mime settings for text/html, application/x-extension-htm, and application/x-extension-html

thx


arch xfce x86_64

Offline

#7 2018-07-30 22:24:22

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: Web-Links Open In Xed

Sure, I have Firefox on all of them.

Offline

#8 2018-07-30 22:39:09

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

thx!  if you're willing: remove firefox from each, and see if links in your email still open in firefox.

that may show us if the mime setting really apply to link-types, or just file types.

thx


arch xfce x86_64

Offline

#9 2018-07-31 17:56:04

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: Web-Links Open In Xed

Sorry for late response. I've changed them to Leafpad and my links still opened correctly in Firefox.

Offline

#10 2018-07-31 18:52:49

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

Thx for testing! Hopefully someone can chime in and explain how urls get associated with the browser.


arch xfce x86_64

Offline

#11 2018-07-31 19:25:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Web-Links Open In Xed

Try x-scheme-handler/http and x-scheme-handler/https instead.

First check the association:

xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https

If not set to chromium.desktop:

xdg-mime default chromium.desktop x-scheme-handler/http
xdg-mime default chromium.desktop x-scheme-handler/https

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#12 2018-07-31 22:21:05

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

thx, will try! How come x-scheme-handler isn't listed in MIME editor? Is it listed in another gui? thx


arch xfce x86_64

Offline

#13 2018-07-31 22:50:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Web-Links Open In Xed

It looks like the mime editor only shows application-based associations. Application-based meaning options that are available in the "Open with" dialog. But not all mime schemes are listed. In your example, I think it may be the x-scheme-handlers that determine which application opens http(s) URIs.

More info: https://docs.xfce.org/xfce/xfce4-settings/mime.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#14 2018-08-01 03:16:46

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

ToZ wrote:
xdg-mime default chromium.desktop x-scheme-handler/http
xdg-mime default chromium.desktop x-scheme-handler/https

didn't work. After doing the above, it's still chrome:

# xdg-mime query default x-scheme-handler/http
google-chrome.desktop

# xdg-mime default chromium.desktop x-scheme-handler/http

# xdg-mime query default x-scheme-handler/http
google-chrome.desktop 

Last edited by johnywhy (2018-08-01 03:17:19)


arch xfce x86_64

Offline

#15 2018-08-01 12:34:49

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Web-Links Open In Xed

Hmmm.

$ xdg-settings --list
Known properties:
  default-url-scheme-handler    Default handler for URL scheme
  default-web-browser           Default web browser
$ xdg-settings get default-url-scheme-handler
xdg-settings: default-url-scheme-handler not implemented for xfce

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#16 2018-08-01 17:55:33

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

$ xdg-settings --list
Known properties:
  default-url-scheme-handler    Default handler for URL scheme
  default-web-browser           Default web browser

$ xdg-settings get default-url-scheme-handler
xdg-settings: default-url-scheme-handler not implemented for xfce

Maybe unrelated: i noticed that, even tho' i uninstalled Chrome, it's still in my Internet menu. Nothing happens when i click it, so it does seem gone. But something seems broke with chrome uninstaller (or installer) maybe.

Update: just installed Vivaldi browser. Now, geary links open in Vivaldi. Therefor, something was broken in Chromium install.

Still getting [c]default-url-scheme-handler not implemented for xfce[/c]

In MIME, Vivaldi is listed for about 40 items, including
text/html
image/webp
application/x-mozilla-bookmarks
numerous xml items.

thx

Last edited by johnywhy (2018-08-01 18:24:03)


arch xfce x86_64

Offline

#17 2018-08-01 18:32:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Web-Links Open In Xed

I'm not sure what is happening and why the url-scheme-handler is not implemented in Xfce. Perhaps a bug report is required.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#18 2018-08-01 18:35:30

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Web-Links Open In Xed

Perhaps. But in installed vivaldi browser, and now links are opening as expected, even without url-scheme-handler.

So I'm no longer seeing issue here. Problem was apparently chromium installer.

Now seeing uninstall issue with chrome/chromium. Please see: https://forum.xfce.org/viewtopic.php?id=12357

THX

Last edited by johnywhy (2018-08-01 20:35:08)


arch xfce x86_64

Offline

Board footer

Powered by FluxBB