LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Google Chrome as the permanent default Web browser
#1
This will open all webpages and html files with Chrome. If you want to set Chromium as your default web browser, replace each instance of google-chrome.desktop below with chromium-browser.desktop

1. Open your home folder, browse to /etc/gnome

2. Right click on defaults.list and Open as Administrator

3. Look for the lines:

Code:
application/xhtml+xml=firefox.desktop;
text/html=firefox.desktop;
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;

and change to:

Code:
application/xhtml+xml=google-chrome.desktop;firefox.desktop;
text/html=google-chrome.desktop;firefox.desktop;
x-scheme-handler/http=google-chrome.desktop;firefox.desktop;
x-scheme-handler/https=google-chrome.desktop;firefox.desktop;

Save and close the file.
Reply
#2
This was useful information, thanks.

I know some will scoff at this but as LL has already made strides in making Linux more accessible to new users and as Chrome is in your "Install Additional Software" program perhaps you could add some code that would prompt the user at install time with the option of making chrome default and then sticking those lines in the relevent file?

Just an idea...
Don't believe half of what you see and none of what you hear

- Lou Reed
Reply
#3
I have to agree.  No matter how many times I select Chromium as default when I start it, it always asks.
Reply
#4
This is something Google could quite easily implement at their end but as usual, we get the crap code and windoze gets the royal treatment.

Sent from my mobile phone.

Reply
#5
Thanks so much for this information.  Thanks Robert for asking about it.
Reply
#6
I've made a GUI to change between Firefox, Google Chrome and Chromium.
[Image: gZ9MSJQ.png]
It was not that hard. Smile
I've made a repo on github. Remember to run it with 'gksudo filename'
Reply
#7
Here is how to download and run the tool to choose your default browser.
[Image: rzHPtan.png]
1. Download this script
Code:
wget https://github.com/Misko-2083/laughing-avenger/raw/master/sw_firefox-chrome -P $HOME/Desktop
2. Make it executable
Code:
chmod +x $HOME/Desktop/sw_firefox-chrome
3. Run it with
Code:
gksudo $HOME/Desktop/sw_firefox-chrome

If you want to move it to a more secure location
Code:
sudo mv $HOME/Desktop/sw_firefox-chrome /usr/scripts
1.Then you can run it with
Code:
gksudo /usr/scripts/sw_firefox-chrome

2.If you want to add it to the Whisker Menu do the  folowing:
Right-click on the Whisker Menu and left-click on Edit Applications
Next, click on Settings in the left navigation pane and then on '+ new item' (on the right side)
[Image: JiQZnI5.png]
In the Launcher properites dialog enter this:
Name: Set Default Browser
Command: gksudo /usr/scripts/sw_firefox-chrome
Comment: Set default web browser
If you want to set the icon, left-click on it and locate it. Computer> /usr/share/icons or if you have icons in your home folder /home/.icons

Valtam says "this would be best slotted into a future piece of software".
If you have questions/suggestions don't hesitate to ask.
Reply
#8
misko_2083,

I haven't tested this one out (I only use one browser), but I just wanted to say thank you for all your valuable contributions to LL and the forum.  You've done a great job on this, the software installer and various forum tutorials.  Absolutely excellent job!
Try Linux Beginner Search Engine for answers to Linux questions.
Reply
#9
Couldn't agree more gold_finger! Misko, your contributions to this distro are proving invaluable. You do exactly what LL is trying to do for it's users, make LL easy to use. Look forward to adding this to a future LL tweaking tool.
Reply
#10
Thank you Misko.
Don't believe half of what you see and none of what you hear

- Lou Reed
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)