LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2014, 01:12 PM   #1
StevenXL
Member
 
Registered: Jan 2014
Posts: 69

Rep: Reputation: Disabled
Google Chrome Icon


Hi guys -

I've installed Google Chrome on Slackware. It works great but I don't see the icon in any of the places where I search for Google Chrome.

For example, when I use alt + f2 and I search for a program, I usually see the icon of the program. I don't see it with Google Chrome. (This is the same if I use the bottom-left menu to search, etc.).

How Can I fix this?

(It's a small issue, but I figure that trying to get Slackware just the way I want it is the best way to learn).
 
Old 01-26-2014, 01:16 PM   #2
mattallmill
Member
 
Registered: Nov 2009
Location: Salina,Kansas
Distribution: Slackware64-current
Posts: 202

Rep: Reputation: 31
Quote:
Originally Posted by StevenXL View Post
Hi guys -

I've installed Google Chrome on Slackware. It works great but I don't see the icon in any of the places where I search for Google Chrome.

For example, when I use alt + f2 and I search for a program, I usually see the icon of the program. I don't see it with Google Chrome. (This is the same if I use the bottom-left menu to search, etc.).

How Can I fix this?

(It's a small issue, but I figure that trying to get Slackware just the way I want it is the best way to learn).
You're right about it being the best way to learn. See this post on Alien BOB's blog to fix the issue.

Regards,

Matt
 
Old 01-26-2014, 01:55 PM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,817

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
You can make the google-chrome package with my script instead. I set up all icon sizes (16x16, 22x22, 24x24, 32x32, 48x48, 64x64, 128x128 and 256x256) in the correct location rather than just patch the desktop file to hardcode the full path of the 256x256 icon, as the official Slackbuild does.

To use my script simply fetch it as follows "wget http://www.panix.com/~ruari/latest-chrome". Then (optionally) read through it to satisfy yourself I don't do anything crazy. Finally issue the command "bash latest-chrome" to run it (you do not need to be root to run my script). On completion it should create a package named something like /tmp/google-chrome-32.0.1700.102-i386-1ro.tgz, which you can install as normal.

Note: You may find that when you run the script it complains, along the lines of "Google Chrome (32.0.1700.102) is already installed; exiting" if you have already created a package using the official SlackBuild. In that case simply "removepkg google-chrome" (as root) and rerun "bash latest-chrome" again.

Last edited by ruario; 01-28-2014 at 03:30 AM.
 
2 members found this post helpful.
Old 01-26-2014, 02:47 PM   #4
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
Quote:
Originally Posted by ruario View Post
I set up all icon sizes (16x16, 22x22, 24x24, 32x32, 48x48, 64x64, 128x128 and 256x256) in the correct location rather than just patch the desktop file to hardcode the full path of the 256x256 icon, as the offical Slackbuild does.
That's what I did as well but I didn't symlink them to the hicolor directories. I installed them to the appropriate hicolor directories because the google-chrome icon didn't show up in my XFCE dropdown menu when symlinked.
 
Old 01-27-2014, 01:33 AM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,817

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
Quote:
Originally Posted by larryhaja View Post
That's what I did as well but I didn't symlink them to the hicolor directories. I installed them to the appropriate hicolor directories because the google-chrome icon didn't show up in my XFCE dropdown menu when symlinked.

They will show up just fine as long as you call "gtk-update-icon-cache -tq /usr/share/icons/hicolor" in post install. They showed up for you when you copied them not because there were physically present but because time had passed, so Xfce had done the equivalent of this command itself (e.g. it happens everytime you login). Symlinking works equally well.

Last edited by ruario; 01-27-2014 at 01:36 AM.
 
Old 01-27-2014, 09:36 AM   #6
StevenXL
Member
 
Registered: Jan 2014
Posts: 69

Original Poster
Rep: Reputation: Disabled
Thanks for the suggestions!

I haven't had time to implement any of them, but I will post back as soon as I do with results.
 
Old 01-27-2014, 03:38 PM   #7
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware, Debian
Posts: 93

Rep: Reputation: 25
On a similar note but a much different situation, a different installer package/script I used in the past had installed the .desktop icon in the wrong location.
(It was in "/opt/google/chrome/" instead of "/usr/share/applications/" )
Code:
ln -s /opt/google/chrome/google-chrome.desktop /usr/share/applications/google-chrome.desktop
 
Old 01-28-2014, 12:45 AM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,817

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
@Hangaber: That is where the official packages from Google had the file initially (prior to post install). However in recent versions it is already in the correct location from the beginning.

Last edited by ruario; 01-28-2014 at 03:21 AM.
 
Old 01-28-2014, 08:03 PM   #9
StevenXL
Member
 
Registered: Jan 2014
Posts: 69

Original Poster
Rep: Reputation: Disabled
@ruario,

I followed your directions in post #3 and it worked like a charm!

Very happy with it now.

(P.S. - I looked through your script; I don't know much about bash but I am learning Python so I understand some of what was going on).
 
Old 01-28-2014, 11:57 PM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,817

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
@StevenXL: cool, glad it worked out for you. If you keep the script around you can just rerun it from time to time. If a new version appears it will download and repack it for you, ready for install. If you already have the latest version it will just confirm that is the case and exit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Chrome New Tab Page (!)= Chrome OS Desktop Kenny_Strawn Linux - General 6 02-19-2011 05:36 PM
[SOLVED] This there a Slackware version of Google Chromium Browser? (not Google Chrome) Robert.Thompson Slackware 6 01-13-2011 05:27 AM
[SOLVED] Google Talk Plugin, Slackware64-Current, Google Chrome (Latest) and Multilib - Error Gavin Harper Slackware 3 01-04-2011 07:45 AM
LXer: As Goes Chrome OS, So Goes Google's Chrome Browser LXer Syndicated Linux News 4 10-09-2010 03:18 PM
LXer: Google Chrome Automatically Installs Google Repository in Ubuntu LXer Syndicated Linux News 3 05-07-2010 11:20 AM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration