[SOLVED] Firefox opens blank pages intead of URL
Problem
When trying to open an URL with Firefox (eg. via File Manager of Mail Reader), Firefox opens a blank page or your homepage (if it's set to something other than blank) instead of the URL.
This situation has been reported and confirmed as a bug (bug #1427144 on launchpad).
Solution
It seems that the problem is in the file /usr/share/xfce4/helpers/firefox.desktop
, and replacing the last line fixes it.
Fix
You can fix it manually (1) or just run the command (2) that creates a backup and automatically replaces the broken line.
-
Manual: Open
/usr/share/xfce4/helpers/firefox.desktop
with your favorite text editor and root permissions (eg.sudo mousepad /usr/share/xfce4/helpers/firefox.desktop
). Then replace the following line:X-XFCE-CommandsWithParameter=%B -remote "openURL(%s)";%B %s;
With this one:
X-XFCE-CommandsWithParameter=%B %s;%B %s;
-
Automatic: Open a terminal window and run:
cd /usr/share/xfce4/helpers/ && sudo cp firefox.desktop firefox.desktop.bak && sudo sed -i 's/-remote "openURL(%s)"/%s/' firefox.desktop
Thanks a lot ,My url desktop links quit working on both Ubuntu Studio 12.04 and Mint 17 Xfce the same day .I expect a recent update broke em .This fixed them ,Thanks again.
ReplyDeleteYou're welcome :)
DeleteYet another happy XFCE user :)
ReplyDeleteYour fix works like a charm.
Thank you very much!
Glad it helped.
DeleteGood morning Wilson,
ReplyDeleteit worked for me too! Thanks from Italy :)
De nada, from Portugal ;)
Delete