You are not logged in.
$ pacman -Q xfce4-terminal
xfce4-terminal 0.8.9.2-1
Hey everyone, if I click on a link in my terminal, it open chromium. How can I make it open the link in firefox?
This is already the setting in xfce's "preferred programs" (or whatever exactly it is called in English) menu. It also works for other links, e.g. in LO Writer.
SOLUTION
Here: https://bbs.archlinux.org/viewtopic.php … 7#p1909287
Last edited by jones (2020-06-09 20:31:37)
Offline
I just tried it in mine. If I left-click on the link nothing happens at all, and I do have Chromium installed.
If I right-click and select 'Open Link' it opens in Firefox, which I also have selected as preferred application. Maybe try the second way.
Offline
Is it using XDG? Have you set your default browser correctly with xdg-settings?
Offline
I just tried it in mine. If I left-click on the link nothing happens at all, and I do have Chromium installed.
If I right-click and select 'Open Link' it opens in Firefox, which I also have selected as preferred application. Maybe try the second way.
Thank you for your reply. I tried that. Chromium gets opened.
Is it using XDG? Have you set your default browser correctly with xdg-settings?
Thank your for your reply.
I think so. I mean, I do not remember whatever *exactly* I set up in January, but they seem to be installed. One is configured properly, based on what I can say. See here:
$ xdg-settings get default-web-browser
firefox.desktop
$ xdg-settings get default-url-scheme-handler
xdg-settings: default-url-scheme-handler not implemented for xfce
I suppose this is the culprit then? I googled around for a bit (only searched for that specific line and found this chromium commit which includes this very line: https://chromium.googlesource.com/chrom … g-settings in line 895:
895: exit_failure_operation_impossible "default-url-scheme-handler not implemented for $DE"
However after I looked through xdg-settings' manual and tried "$ xdg-settings set default-url-scheme-handler https firefox.desktop", it again said "xdg-settings: default-url-scheme-handler not implemented for xfce".
Would anyone of you know how to proceed?
(Just to make sure, I ran "$ xdg-open ." and it opened my home directory so that worked alright.)
Offline
Xfce4 relies on exo-open from the exo package. The latter installs /etc/xdg/xfce4/helpers.rc, which sets firefox as default WebBrowser. Perhaps you have chromium set in your local override ~/.config/xfce4/helpers.rc? In any case, you can run /usr/bin/exo-preferred-applications to set things up the way you prefer.
Offline
Hi glitsj16, thank you for your reply.
$ cat /etc/xdg/xfce4/helpers.rc
#
# Default helpers.rc for Xfce's Preferred Applications
#
# Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
#
WebBrowser=firefox
MailReader=thunderbird
TerminalEmulator=xfce4-terminal
FileManager=Thunar
and
$ cat ~/.config/xfce4/helpers.rc
WebBrowser=firefox
This is also reflected by the menu which gets open by running exo-preferred-applications, as stated in the opening post.
Offline
SOLUTION
... based on glitsj16's post, I went on googling and found this post from 2011: https://forum.xfce.org/viewtopic.php?id=6013
To solve this, I added the lines
x-scheme-handler/http=exo-web-browser.desktop;
x-scheme-handler/https=exo-web-browser.desktop;
to
$ locate mimeapps.list
/home/my_username/.config/mimeapps.list
After logging out + logging in again, clicking on a URL in xfce4's terminal opens the link in a new firefox tab. Splendid.
Last edited by jones (2020-06-09 20:30:23)
Offline