LinuxQuestions.org
Help answer threads with 0 replies.
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, 02:12 PM   #1
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

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, 02:16 PM   #2
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 865
Blog Entries: 9

Rep: Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594
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, 02:55 PM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
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 04:30 AM.
 
2 members found this post helpful.
Old 01-26-2014, 03:47 PM   #4
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
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, 02:33 AM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
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 02:36 AM.
 
Old 01-27-2014, 10:36 AM   #6
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

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, 04:38 PM   #7
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
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, 01:45 AM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
@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 04:21 AM.
 
Old 01-28-2014, 09:03 PM   #9
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

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-29-2014, 12:57 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
@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 06:36 PM
[SOLVED] This there a Slackware version of Google Chromium Browser? (not Google Chrome) Robert.Thompson Slackware 6 01-13-2011 06:27 AM
[SOLVED] Google Talk Plugin, Slackware64-Current, Google Chrome (Latest) and Multilib - Error Gavin Harper Slackware 3 01-04-2011 08:45 AM
LXer: As Goes Chrome OS, So Goes Google's Chrome Browser LXer Syndicated Linux News 4 10-09-2010 04:18 PM
LXer: Google Chrome Automatically Installs Google Repository in Ubuntu LXer Syndicated Linux News 3 05-07-2010 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration