LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Google Chrome Icon (https://www.linuxquestions.org/questions/slackware-14/google-chrome-icon-4175492647/)

StevenXL 01-26-2014 01:12 PM

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).

1337_powerslacker 01-26-2014 01:16 PM

Quote:

Originally Posted by StevenXL (Post 5105607)
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

ruario 01-26-2014 01:55 PM

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.

larryhaja 01-26-2014 02:47 PM

Quote:

Originally Posted by ruario (Post 5105627)
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.

ruario 01-27-2014 01:33 AM

Quote:

Originally Posted by larryhaja (Post 5105650)
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.

StevenXL 01-27-2014 09:36 AM

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.

Hangaber 01-27-2014 03:38 PM

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

ruario 01-28-2014 12:45 AM

@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.

StevenXL 01-28-2014 08:03 PM

@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).

ruario 01-28-2014 11:57 PM

@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.


All times are GMT -5. The time now is 03:11 PM.