[SOLVED] Opening Web Links in Firefox from Thunderbird

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Opening Web Links in Firefox from Thunderbird

Postby Thebunyip » Apr 5th, '14, 17:26

Hi all,

In my new instal of magiea 4 x86-64 I have added Thunderbird 24.4.0 (from the repositories) to work alongside the standard Firefox. 24.4.0. I ported my Thunderbird profile from a previous Debian installation of 24.4.0. All seems OK except for a failure of hyperlinks in Thunderbird emails being able to call Firefox when called.

I have used the Mozilla help system to check out my set up.

Firefox is the default Browser.
Thunderbird: Edit>Preferences>Attachments>HTTP is set correctly
Thunderbird: Edit>Preferences>Advanced>Config Editor>in About:Config network.protocol-handler.external-default = default boolean true
KDE System Settings> File Associations>Text>HTML Firefox is the choice at the top of the list
KDE System Settings> Default Applications> Web Browser> Default Component = Firefox
KDE System Settings> Default Applications> Email Client> Default Component = thunderbird %u
The File user.js in my Thunderbird profile contains:
user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.https", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.ftp", "/usr/bin/firefox");

Nothing seems wrong so I am wondering if a reinstall will be required after backing up my profile.

I can not find any reports of this problem on the Forum but wonder if ayone has experienced it and could offer suggestions?
Last edited by doktor5000 on Apr 13th, '14, 15:21, edited 1 time in total.
Reason: marked thread [SOLVED]
User avatar
Thebunyip
 
Posts: 12
Joined: Apr 5th, '14, 15:21

Re: Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Apr 5th, '14, 21:07

Thebunyip wrote:The File user.js in my Thunderbird profile contains:
user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.https", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.ftp", "/usr/bin/firefox");


Those are ignored since a long time, see https://bugzilla.mozilla.org/show_bug.cgi?id=550755#c1
You may also want to look at https://bugs.mageia.org/show_bug.cgi?id=2051

Can you please show the output of
Code: Select all
echo $BROWSER
xdg-settings --list
cat ~/.local/share/applications/defaults.list

and please try what happens when you run
Code: Select all
xdg-open "https://forums.mageia.org"


Also, you may need to remove mimetypes.rdf from your Thunderbird profile, best rename / move it away to test if it helps.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Opening Web Links in Firefox from Thunderbird

Postby Thebunyip » Apr 6th, '14, 16:45

Hi doktor5000,

Thank you for your fast response. I hope what follows will help unravel my mystery.

You asked...
Code: Select all
echo $BROWSER
xdg-settings --list
cat ~/.local/share/applications/defaults.list


Each line produced this output....
[peter@localhost ~]$ echo $BROWSER
/usr/bin/www-browser

[peter@localhost ~]$ xdg-settings --list
Known properties:
default-url-scheme-handler Default handler for URL scheme
default-web-browser Default web browser

[peter@localhost ~]$ cat ~/.local/share/applications/defaults.list
cat: /home/peter/.local/share/applications/defaults.list: No such file or directory

NOTE: The directory exists but there is no 'defaults.list' file. The directory contains mimeapps.list and thunderbird-2.desktop

You also asked that I try ...
Code: Select all
xdg-open "https://forums.mageia.org"

The result launched Firefox and landed on the Forums page. I hope that is good news.

As suggested I have looked at
mimetypes.rdf
and renamed it mimetypes.rdf.bak The action did not appear to have had any effect.

I hope this will enable you to make a suggestion that will fix my problem.

Thanks again for the fast support.
User avatar
Thebunyip
 
Posts: 12
Joined: Apr 5th, '14, 15:21

Re: Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Apr 6th, '14, 18:28

Please show the output of
Code: Select all
cat ~/.local/share/applications/mimeapps.list
xdg-settings get default-web-browser
xdg-settings get default-url-scheme-handler
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
xdg-mime query default text/html


You may also want to check http://www.kevinlocke.name/bits/2012/07 ... ser-linux/ for more background infromation
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Opening Web Links in Firefox from Thunderbird

Postby Thebunyip » Apr 6th, '14, 19:42

Hi doktor5000,

You asked for...
Code: Select all
cat ~/.local/share/applications/mimeapps.list
xdg-settings get default-web-browser
xdg-settings get default-url-scheme-handler
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
xdg-mime query default text/html


The results are...
[peter@localhost ~]$ cat ~/.local/share/applications/mimeapps.list
[Added Associations]
text/html=firefox.desktop;kde4-kfmclient_html.desktop;kde4-kwrite.desktop;libreoffice-writer.desktop;kde4-okularApplication_txt.desktop;
application/turboprint-key=turboprint-control.desktop

[Default Applications]
application/turboprint-key=turboprint-control.desktop


[peter@localhost ~]$ xdg-settings get default-web-browser
firefox

[peter@localhost ~]$ xdg-settings get default-url-scheme-handler {NO OUTPUT}

[peter@localhost ~]$ xdg-mime query default x-scheme-handler/http {NO OUTPUT}

[peter@localhost ~]$ xdg-mime query default x-scheme-handler/https {NO OUTPUT}

[peter@localhost ~]$ xdg-mime query default text/html
firefox.desktop


I also read through the page
http://www.kevinlocke.name/bits/2012/07/18/thunderbird-default-browser-linux/
you linked to. The section on XDG MIME action (Thunderbird > ~4) caught my eye.

My mimeapps.list file at ~/.local/share/applications/mimeapps.list does not contain any reference to x-scheme=handler. IF I edited it it would look like...
[Added Associations]
text/html=firefox.desktop;kde4-kfmclient_html.desktop;kde4-kwrite.desktop;libreoffice-writer.desktop;kde4-okularApplication_txt.desktop;
application/turboprint-key=turboprint-control.desktop

[Default Applications]
application/turboprint-key=turboprint-control.desktop
x-scheme-handler/http=firefox.desktop


Would that be worth trying or do I need to address the missing xdg-.........-scheme-handler outputs first?
User avatar
Thebunyip
 
Posts: 12
Joined: Apr 5th, '14, 15:21

[SOLVED] Opening Web Links in Firefox from Thunderbird

Postby Thebunyip » Apr 8th, '14, 19:02

Hi doktor5000,

Now I am confused. My problem has disappeared. Clicking Links in a Thunderbird email now launches Firefox and lands on the target :!: :!:

I have read through the man pages for xdg-settings and xdg-mime and have been left none the wiser. I cannot see how the three commands did not produce an output or even an error message. But as that was the last action that could have impacted my problem I suspect that it somehow solved it. A couple of system shut downs and relaunches seems to indicate that the fix is permanent.

So I guess I need to say thank you even if I cannot figure out how I have been helped. It looks as if my chances of becoming comfortable with the command line may be receding even further away.

Thank you for the patient and clear helpful instructions just the same.
User avatar
Thebunyip
 
Posts: 12
Joined: Apr 5th, '14, 15:21

Re: Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Apr 8th, '14, 21:41

No problem. You didn't edit mimeapps.list in any way?

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks ;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Apr 13th, '14, 15:21

For what it's worth, I've encountered a similar issue when switching from Firefox to Chromium. Only thing I did was to open systemsettings, and set chromium-browser as the default browser. This is not sufficient for e.g. opening links from Thunderbird. This is the state before:

Code: Select all
[doktor5000@Mageia4 ~]$ cat ~/.local/share/applications/mimeapps.list
[Added Associations]
application/vnd.VAR_VENDOR_NAME.VAR_PRODUCT_NAME-dxf=vlc.desktop;
application/x-bittorrent=transmission-gtk.desktop;miro.desktop;qBittorrent.desktop;
application/x-cd-image=vlc.desktop;
application/x-rar=vlc-6.desktop;vlc.desktop;kde4-ark.desktop;
inode/directory=Thunar-folder-handler.desktop;kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-gwenview.desktop;
video/mp4=vlc-3.desktop;
video/mpeg=vlc-4.desktop;
video/x-ms-wmv=vlc-5.desktop;
video/x-msvideo=vlc-2.desktop;
x-scheme-handler/wuala=wuala.desktop;
[doktor5000@Mageia4 ~]$ xdg-settings get default-web-browser
chromium-browser.desktop
[doktor5000@Mageia4 ~]$ xdg-settings get default-url-scheme-handler
[doktor5000@Mageia4 ~]$ xdg-mime query default x-scheme-handler/http
qupzilla.desktop
[doktor5000@Mageia4 ~]$ xdg-mime query default x-scheme-handler/https
qupzilla.desktop
[doktor5000@Mageia4 ~]$ xdg-mime query default text/html
firefox.desktop
[doktor5000@Mageia4 ~]$ xdg-mime query default x-scheme-handler/https
qupzilla.desktop
[doktor5000@Mageia4 ~]$


What I've changed now:

Code: Select all
[doktor5000@Mageia4 ~]$ xdg-mime default chromium-browser.desktop x-scheme-handler/https                                                                               
[doktor5000@Mageia4 ~]$ xdg-mime query default x-scheme-handler/https
chromium-browser.desktop


This works reproducably, I can switch back and forth by this.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jun 29th, '15, 10:55

Hello Doktor,
I have Mageia 5 with Thunderbird and my problem is, when clicking on a link in Thunderbird, Firefox actually opens up but stack on its default home page (in my case: set to Google), the link was ignored.
(i) I have run the tests suggested by Doktor, and I had almost the same output as got by Thebunyip (who initiated this topic), except this:
Code: Select all
xdg-open "https://forums.mageia.org"

which lunches Firefox on a curious local page:
file:///var/tmp/kdecache-jianfeng/krun/26789_0_


(ii) I have also the last commands you suggested:
Code: Select all
xdg-mime default chromium-browser.desktop x-scheme-handler/https

with "firefox.desktop" replacing your "chromium-browser.desktop".
The same problem remains.

So what's wrong in my case?? Thank you for help.
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Jun 29th, '15, 20:55

What desktop environment do you use, maybe KDE? I think I know that issue with /var/tmp/kdecache-*/krun/ ...
Please post the output for all of the commands listed at https://wiki.mageia.org/en/User:Doktor5 ... lt_browser
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jun 30th, '15, 02:09

Thank you for your reply!

Yes I'm using KDE 4.14.5 with Mageia 5.

Outputs of commands in your "to check default browser" section are:
Code: Select all
[jianfeng@localhost ~]$ xdg-settings get default-web-browser
firefox.desktop
[jianfeng@localhost ~]$ xdg-settings get default-url-scheme-handler http
[jianfeng@localhost ~]$ xdg-settings get default-url-scheme-handler https
[jianfeng@localhost ~]$ xdg-mime query default x-scheme-handler/http
[jianfeng@localhost ~]$ xdg-mime query default x-scheme-handler/https
[jianfeng@localhost ~]$ for i in application/x-extension-html application/x-extension-shtml application/x-extension-xhtml application/xhtml+xml text/html; do
>    xdg-mime query default $i
>  done
firefox.desktop
firefox.desktop


and for
" 1. for KDE to double-check":
Code: Select all
[jianfeng@localhost ~]$  kreadconfig --group General --key BrowserApplication
firefox.desktop
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Jun 30th, '15, 07:37

Please set them all to firefox, except for the last one which should be left empty. Run all commands as normal user

Code: Select all
browser="firefox.desktop"
 xdg-settings set default-web-browser $browser
 xdg-settings set default-url-scheme-handler http $browser
 xdg-settings set default-url-scheme-handler https $browser
 xdg-mime default $browser x-scheme-handler/http
 xdg-mime default $browser x-scheme-handler/https
 xdg-mime default $browser x-scheme-handler/about
 for i in application/x-extension-html application/x-extension-shtml application/x-extension-xhtml application/xhtml+xml text/html; do
   xdg-mime default $browser $i
 done
kwriteconfig --group General --key BrowserApplication ""
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 4th, '15, 11:24

[ Sorry for my delayed reply as Iwas in Mainland China and no access to Mageia forum is granted! Just as Google being kicked out!! ]

So I have run these setting commands in a terminal as a normal user in a terminal; verified that all the checkcing commands above
Outputs of commands in your "to check default browser" section
and "1. for KDE to double-check":
return firefox.desktop now.

But nothing changes! While cliking on a link in Thunderbird, it opens Firefox on its default page. :-(
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 4th, '15, 11:34

Oh one thing has changed after all these commands:
Code: Select all
[jianfeng@localhost ~]$  kreadconfig --group General --key BrowserApplication


Previously, the output was: "firefox.desktop".
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Jul 4th, '15, 19:09

Hmm, please also show the output of

Code: Select all
gconftool-2 --get /desktop/gnome/url-handlers/http/command
gconftool-2 --get /desktop/gnome/url-handlers/https/command
gconftool-2 --get /desktop/gnome/url-handlers/ftp/command


If you run the following commands, which browser opens?

Code: Select all
xdg-open 'https://www.mageia.org'
kde-open 'https://www.mageia.org'
gnome-open 'https://www.mageia.org'
www-browser 'https://www.mageia.org'
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 5th, '15, 16:13

Thanks for your continuing support.

So for your instructed commands:
Code: Select all
[jianfeng@localhost ~]$ gconftool-2 --get /desktop/gnome/url-handlers/http/command
/usr/local/firefox-6.0/firefox %s
[jianfeng@localhost ~]$ gconftool-2 --get /desktop/gnome/url-handlers/https/command
/usr/local/firefox-6.0/firefox %s
[jianfeng@localhost ~]$ gconftool-2 --get /desktop/gnome/url-handlers/ftp/command
/usr/local/firefox-6.0/firefox %s


and
Code: Select all
xdg-open 'https://www.mageia.org'
kde-open 'https://www.mageia.org'
www-browser 'https://www.mageia.org'

all give the same thing: Firsfix is open on a local file file:///var/tmp/kdecache-jianfeng/krun/28879_0_en
with a list of warnings:
Code: Select all
[jianfeng@localhost ~]$ kde-open 'https://www.mageia.org'
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12"                                                                                       
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12"
kioclient(32392) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12"


Is this the place of the torouble? Since my initial problem resemble to this: clickin gon a link within Thunderbird leads to an opening of Firefox on local file of type file:///var/tmp/kdecache-jianfeng/krun/26789_0_
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Jul 6th, '15, 10:37

Please run the following as normal user:
Code: Select all
kbuildsycoca4 --noincremental


Then logout/login and try again. If it's still not working, please show again all the outputs requested in
viewtopic.php?p=57480#p57480
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 6th, '15, 14:50

I should mention that my Mageia 5 is installed on a full new partition, but I copied my old home directory (running under Mageia 3); in particular, my
.ked4 directory should contain a lots of old configuration files... Can this influence on the present issue??

Otherwise, for your suggested actions:

Output of kbuildsycoca4 command:
Code: Select all
[jianfeng@localhost confs]$ kbuildsycoca4 --noincremental
kbuildsycoca4 running...
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12"
kbuildsycoca4(25308) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12"


Then I logout/login, click on a link with Thunderbird. This time, Firxfox opens on its homepage (in my case, Google homepage), not anymore on a curious local file of type file://... etc. So still not working :( :(

Now outputs from those checking commands in [url]viewtopic.php?p=57480#p57480[/url] gives "firefox.deskop" everywhere, see:
Code: Select all
[jianfeng@localhost confs]$ xdg-settings get default-web-browser
firefox.desktop
[jianfeng@localhost confs]$ xdg-settings get default-url-scheme-handler http
firefox.desktop
[jianfeng@localhost confs]$ xdg-settings get default-url-scheme-handler https
firefox.desktop
[jianfeng@localhost confs]$ xdg-mime query default x-scheme-handler/http
firefox.desktop
[jianfeng@localhost confs]$ xdg-mime query default x-scheme-handler/https
firefox.desktop
[jianfeng@localhost confs]$ for i in application/x-extension-html application/x-extension-shtml application/x-extension-xhtml application/xhtml+xml text/html; do xdg-mime query default $i; done
firefox.desktop                                                                                                                                                                                   
firefox.desktop
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Jul 7th, '15, 12:27

So it now looks as it should look like when you want the systemwide firefox as default browser.

What confuses me is that you seemed to have already configured a firefox configured with some GNOME application problem that lives in /usr/local/bin,
which by default comes first in your PATH, hence it will win. But the firefox.desktop file you configured with all the mime settings lives in /usr/share/applications
and probably points to /usr/bin/firefox ...

mystere88 wrote:So for your instructed commands:
Code: Select all
[jianfeng@localhost ~]$ gconftool-2 --get /desktop/gnome/url-handlers/http/command
/usr/local/firefox-6.0/firefox %s
[jianfeng@localhost ~]$ gconftool-2 --get /desktop/gnome/url-handlers/https/command
/usr/local/firefox-6.0/firefox %s
[jianfeng@localhost ~]$ gconftool-2 --get /desktop/gnome/url-handlers/ftp/command
/usr/local/firefox-6.0/firefox %s


How did you define your own firefox for GNOME, do you happen to know? Even more so as it says firefox-6.0 which is ages old ...
I'd change that simply to firefox %s
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 10th, '15, 01:04

Hi Doktor5000,

I did not know how these gnome defaults have been set.
Also I do not have any
Code: Select all
/usr/local/firefox-6.0/firefox
directory:
Code: Select all
[jianfeng@localhost ~]$ ls -l /usr/local/firefox-6.0
ls: cannot access /usr/local/firefox-6.0: No such file or directory
[jianfeng@localhost ~]$


This might come from an old configuration file.
So how can set correctly these default values, e.g.
Code: Select all
 /desktop/gnome/url-handlers/http/command

to firefox %s as you suggested??

Many thanks again for your help. :)
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby doktor5000 » Jul 10th, '15, 02:47

mystere88 wrote:So how can set correctly these default values, e.g.
Code: Select all
 /desktop/gnome/url-handlers/http/command

to firefox %s as you suggested??


First try this way:
Code: Select all
gconftool-2 --set /desktop/gnome/url-handlers/http/command --type string "xdg-open \"%s"\"
gconftool-2 --set /desktop/gnome/url-handlers/https/command --type string "xdg-open \"%s"\"
gconftool-2 --set /desktop/gnome/url-handlers/ftp/command --type string "xdg-open \"%s"\"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18060
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 11th, '15, 00:30

After setting the trois parameters/name, the result of test is as follows:
Code: Select all
[jianfeng@localhost aRech]$ gconftool-2 --get /desktop/gnome/url-handlers/https/command
xdg-open "%s"
[jianfeng@localhost aRech]$ gconftool-2 --get /desktop/gnome/url-handlers/http/command
xdg-open "%s"
[jianfeng@localhost aRech]$ gconftool-2 --get /desktop/gnome/url-handlers/ftp/command
xdg-open "%s"
[jianfeng@local


Then I logged out and logged in, the output for the tests remain the same. But clicking a link, Firefox still opens
on its default page. :( :(
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50

Re: [SOLVED] Opening Web Links in Firefox from Thunderbird

Postby mystere88 » Jul 11th, '15, 23:44

The default page opened by Firefox , in my case is google home page. However, the link shown there on the address line is
https://www.google.com.hk/?gws_rd=ssl
and not simply
http://www.google.com.hk/

Does this means something special??
mystere88
 
Posts: 30
Joined: Aug 25th, '11, 05:50


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest