Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-01-07 20:41:28

falco2000
Member
Registered: 2015-01-07
Posts: 8

Chrome loses the default browser state

Hello, I installed Chrome in Linux Mint 17 XFCE and I use to start it with the "exo-open --launch WebBrowser" command. I set it as default browser in Preferred Applications, but everytime I reboot, a dialogue box appears asking me to set the default browser; after choosing google-chrome-stable in the proper field, Chrome itself starts showing the yellow top bar asking me the same thing. Is there any way to solve this issue? Thanks a lot.


Linux Mint 17 XFCE user; Linux user since 2013; English non-native speaker.

Offline

#2 2015-01-09 14:47:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,020

Re: Chrome loses the default browser state

What are the results of the following commands entered in a terminal window:

cat ~/.config/xfce4/helpers.rc
sudo update-alternatives --display x-www-browser
sudo update-alternatives --display gnome-www-browser

..and the contents of ~/.local/share/applications/mimeapps.list?


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

#3 2015-01-10 16:44:02

falco2000
Member
Registered: 2015-01-07
Posts: 8

Re: Chrome loses the default browser state

I get the following results both when:

1) I have manually set Chrome as default browser in Preferred Applications and in Chrome itself
2) I just rebooted and the execution of "exo-open --launch WebBrowser" opens the pop-up dialog box when I have to set the default browser again

$ cat ~/.config/xfce4/helpers.rc
WebBrowser=google-chrome

$ sudo update-alternatives --display x-www-browser
x-www-browser - auto mode
  link currently points to /usr/bin/google-chrome-stable
/usr/bin/firefox - priority 40
/usr/bin/google-chrome-stable - priority 200
Current 'best' version is '/usr/bin/google-chrome-stable'.

$ sudo update-alternatives --display gnome-www-browser
gnome-www-browser - auto mode
  link currently points to /usr/bin/google-chrome-stable
/usr/bin/firefox - priority 40
/usr/bin/google-chrome-stable - priority 200
Current 'best' version is '/usr/bin/google-chrome-stable'.

Linux Mint 17 XFCE user; Linux user since 2013; English non-native speaker.

Offline

#4 2015-01-10 17:34:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,020

Re: Chrome loses the default browser state

What about the contents of your ~/.local/share/applications/mimeapps.list file?


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

#5 2015-01-10 19:06:26

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,020

Re: Chrome loses the default browser state

falco2000 wrote:
$ cat ~/.config/xfce4/helpers.rc
WebBrowser=google-chrome

On my system, this says:

WebBrowser=chromium

...even though I only have google-chrome-stable installed (no chromium).

Is "Chromium" an option that you can select from "Preferred Applications"? If so, try selecting it.
If not, edit that file to read: "WebBrowser=chromium".


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

#6 2015-01-16 17:55:03

falco2000
Member
Registered: 2015-01-07
Posts: 8

Re: Chrome loses the default browser state

ToZ wrote:

What about the contents of your ~/.local/share/applications/mimeapps.list file?

I forgot it, here it is:

[Default Applications]
x-scheme-handler/mailto=thunderbird.desktop
message/rfc822=thunderbird.desktop
application/x-extension-eml=thunderbird.desktop
video/quicktime=vlc.desktop
video/mp4=vlc.desktop
video/mpeg=vlc.desktop
text/html=google-chrome.desktop
application/gzip=synfigstudio.desktop

[Added Associations]
x-scheme-handler/mailto=thunderbird.desktop;
message/rfc822=thunderbird.desktop;
application/x-extension-eml=thunderbird.desktop;
x-scheme-handler/http=exo-web-browser.desktop
x-scheme-handler/https=exo-web-browser.desktop
video/quicktime=vlc.desktop;
video/mp4=vlc.desktop;
video/mpeg=vlc.desktop;
text/html=google-chrome.desktop;
application/gzip=synfigstudio.desktop;

Linux Mint 17 XFCE user; Linux user since 2013; English non-native speaker.

Offline

#7 2015-01-17 02:00:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,020

Re: Chrome loses the default browser state

Can you try changing:

WebBrowser=google-chrome

...in your ~/.config/xfce4/helpers.rc file to read:

WebBrowser=chromium

...and log out and back in again and test to see if it makes a difference?


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

#8 2015-01-19 23:13:42

falco2000
Member
Registered: 2015-01-07
Posts: 8

Re: Chrome loses the default browser state

No difference.


Linux Mint 17 XFCE user; Linux user since 2013; English non-native speaker.

Offline

#9 2015-01-20 02:13:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,020

Re: Chrome loses the default browser state

Perhaps you should create a bug report at the linux mint bug tracker: https://bugs.launchpad.net/linuxmint


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

#10 2015-01-23 09:32:12

falco2000
Member
Registered: 2015-01-07
Posts: 8

Re: Chrome loses the default browser state

Ok, thank you...


Linux Mint 17 XFCE user; Linux user since 2013; English non-native speaker.

Offline

#11 2015-01-25 11:58:50

falco2000
Member
Registered: 2015-01-07
Posts: 8

Re: Chrome loses the default browser state

By the way, I tried setting Firefox as default browser, and after reboot the status is kept. So there must be something wrong with Chrome/Chromium.

Last edited by falco2000 (2015-01-25 18:46:30)


Linux Mint 17 XFCE user; Linux user since 2013; English non-native speaker.

Offline

#12 2015-03-23 14:49:03

dcos
Member
Registered: 2015-03-23
Posts: 1

Re: Chrome loses the default browser state

falco, I had an issue with how chrome was opening.  The culprit was the exec location in the desktop file.  Here's what I did hope it helps.

- Go to /usr/share/applications
- open google-chrome.desktop in text editor as root
- Use the find option and locate ALL 3 Exec values (should look something like Exec=/usr/bin/google-chrome-stable %U)
- change "Exec=/usr/bin/google-chrome-stable" to "Exec=/opt/google/chrome/google-chrome"  (be sure to remove the '-stable' after google-chrome and leave the values after the path)
- do the above or all 3 exec lines

Offline

Board footer

Powered by FluxBB