Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 17 Dec 2014, 20:55
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Using the latest Chrome in Lucid 5.28
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
torgo

Joined: 09 Sep 2011
Posts: 60

PostPosted: Fri 22 Feb 2013, 15:48    Post_subject:  Using the latest Chrome in Lucid 5.28
Sub_title: it turns out you just have to be sneaky
 

If you download the 32-bit .deb file for the latest Google Chrome, petget will install it - but it won't show up on the menu or the list for selecting the default browser, and running the executable file simply gives an error message saying it won't run as root.

For near-beginners like me, that's a lot of obstacles to overcome.

But it turns out that it's not so bad.

Suggestion: try this with a clean save file so that you know you're not doing any real damage no matter what.

Here's the walkthrough:


1) Download the latest Chrome 32-bit .deb file
(Suggestion: save the .deb file so that you can use it again later without having to download it again.)
Open it with petget to install it.

2) At least with the current versions, the whole thing ends up in the folder /opt/google/chrome.
Go to that folder and open the google-chrome.desktop file as text.

3) The "Exec" line is around line # 108.
Add "--user-data-dir" to this line BEFORE the %U.
The line will now read:

Exec=/opt/google/chrome/google-chrome --user-data-dir %U



If all you want is a working Chrome, you could save the file and stop there.
Clicking on google-chrome.desktop will launch Chrome, and you can drag it to your desktop to make a quick launch shortcut.

But we can also make it a lot more neat and tidy...



4) There are plenty of icon files in the folder, but for whatever reason, the google-chrome.desktop file isn't using any of them.

Change the "Icon" line (around line # 110) to select one. Example:

Icon=/opt/google/chrome/product_logo_64.png


5) One of the reasons Chrome doesn't automatically show up in the Menu and the default browser selection list is the Categories line, which should be around line # 112.

Change it to read:

Categories=X-Internet;


6) Scroll down to the end of the google-chrome.desktop file.
Add a blank line and then the following lines:

[Junk To Fool Script]
Exec=google-chrome

Then save and close the google-chrome.desktop file.


The really long explanation (skip down to step 7 if you don't care)...

01micko's script program that builds the default browser selection list is absolutely brilliant. (Micko - I'm in awe.)

But the current version of Chrome doesn't play nicely. It adds two extra huge sections to the .desktop file ([NewWindow Shortcut Group] and [NewIcognitoWindow Shortcut Group) intended for the Unity interface.

These extra sections don't do anything for Puppy, though at this point there's no harm in leaving them.

The main thing is that the script for the default browser list takes the browser name from the Exec line in the very last section that it sees in the .desktop file. If that line has a space, it reads the stuff after the space and uses that as the browser's name.

When it sees "Exec=/opt/google/chrome/google-chrome --incognito", it adds "--incognito" to the list of browsers, not "google-chrome".

Deleting these two huge extra sections won't help, because the script would then take the name as --user-data-dir from the first Exec line, and we need to keep that one.

So we're adding an extra section of our own, just to make sure the name is exactly right. It will never be used for anything else, but the script will see the last Exec line and add "google-chrome" to the list of browsers.



7) The other reason why Chrome doesn't show up in the menu or the default browser list is because the .desktop file isn't in the right place. Make a link (relative link or sym link) to it in /usr/share/applications so that Puppy can find it.




8.) Right click on the Browse icon on the desktop.
Choose "Edit Item".
In the "Arguments to pass (for executables)" box, type in

--user-data-dir



9) Reboot, and you should be all set.



After you reboot, Chrome should be in the Internet section of the start menu (with the icon you chose), and it should be on the list of available browsers when you select the default browser.

When you select it as the default, you'll still get the error message saying it can't run as root. Don't panic - the default broswer selection script is simply trying to open the browser directly, without the --user-data-dir. Just close the error message.

When you click the Browse icon to open the default browser, it should open just fine. Same thing when you open it from the Menu.
Back to top
View user's profile Send_private_message 
mavrothal


Joined: 24 Aug 2009
Posts: 1891

PostPosted: Fri 22 Feb 2013, 17:32    Post_subject:  

Nice walk through Smile

Yo might also want to try this pet. Should be OK in lucid

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0507s ][ Queries: 12 (0.0054s) ][ GZIP on ]