You are not logged in.
Pages: 1
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
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
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
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
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.
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
@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
Sure, I have Firefox on all of them.
Offline
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
Sorry for late response. I've changed them to Leafpad and my links still opened correctly in Firefox.
Offline
Thx for testing! Hopefully someone can chime in and explain how urls get associated with the browser.
arch xfce x86_64
Offline
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
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
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
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
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
$ 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
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
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
Pages: 1
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 604.43 KiB (Peak: 621.71 KiB) ]