New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 21 users
Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment
google-chrome-unstable icon is missing (Linux RPM installer)
Reported by gfxm...@gmail.com, Jul 21 2014 Back to list
Chrome Version       : 37.0.2062.3 (Official Build 279868) dev
OS Version: Fedora 20 (x86_64)
URLs (if applicable) :

What steps will reproduce the problem?
1. Install `google-chrome-unstable` package

What is the expected result?
Chrome should have a lovely icon 

What happens instead of that?
The google chrome application (google-chrome-unstable) uses the default application icon (a boring purple diamond)

Please provide any additional information below. Attach a screenshot if
possible.

$ locate google-chrome-unstable.desktop
/usr/share/applications/google-chrome-unstable.desktop

$ grep -i icon /usr/share/applications/google-chrome-unstable.desktop
Icon=google-chrome-unstable

$ pkcon what-provides --filter=installed
/usr/share/applications/google-chrome-unstable.desktop
Installed       google-chrome-unstable-37.0.2062.3-1.x86_64
(installed:google-chrome)    Google Chrome (unstable)

Peeking in the latest google-chrome-unstable rpm in /var/cache/yum, I
notice the following:


#------------------------------------------------------------------------------
#   Post install script
#------------------------------------------------------------------------------
# Add icons to the system icons
XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null || true`"
if [ ! -x "$XDG_ICON_RESOURCE" ]; then
  echo "Error: Could not find xdg-icon-resource" >&2
  exit 1
fi
for icon in "/opt/google/chrome-unstable/product_logo_"*.png; do
  size="${icon##*/product_logo_}"
  "$XDG_ICON_RESOURCE" install --size "${size%.png}" "$icon" "google-chrome"
done

If I run this (but with XDG_ICON_RESOURCE=echo), I see:

$ XDG_ICON_RESOURCE="echo"
$ for icon in "/opt/google/chrome-unstable/product_logo_"*.png; do
>   size="${icon##*/product_logo_}"
>   "$XDG_ICON_RESOURCE" install --size "${size%.png}" "$icon" "google-chrome"
> done
install --size 128 /opt/google/chrome-unstable/product_logo_128.png
google-chrome
install --size 16 /opt/google/chrome-unstable/product_logo_16.png google-chrome
install --size 22 /opt/google/chrome-unstable/product_logo_22.png google-chrome
install --size 24 /opt/google/chrome-unstable/product_logo_24.png google-chrome
install --size 256 /opt/google/chrome-unstable/product_logo_256.png
google-chrome
install --size 32 /opt/google/chrome-unstable/product_logo_32.png google-chrome
install --size 48 /opt/google/chrome-unstable/product_logo_48.png google-chrome
install --size 64 /opt/google/chrome-unstable/product_logo_64.png google-chrome


So I think it's just installing under the wrong name, because I have:

/usr/share/icons/hicolor/256x256/apps/google-chrome.png

but not

/usr/share/icons/hicolor/256x256/apps/google-chrome-unstable.png


Or at least I figure that's what the problem is.
 
Comment 1 by mgiuca@chromium.org, Jul 21 2014
Cc: mgiuca@chromium.org
Labels: Cr-Internals-Installer
Owner: phajdan.jr@chromium.org
Status: Assigned
Summary: google-chrome-unstable icon is missing (Linux RPM installer) (was: google-chrome-unstable icon is missing)
On my system (Ubuntu), /usr/share/icons/hicolor/256x256/apps/google-chrome-unstable.png is valid. So I suspect this is a problem of the .rpm getting out of date (whereas the .deb was updated).

PaweĊ‚, you recently renamed these, didn't you? Maybe you can update the .rpm.
Status: Started
Uploaded https://codereview.chromium.org/410413004/
Comment 3 by Deleted ...@, Oct 31 2014
Hello,

Same problem here on 3.16.6-200.fc20.x86_64, manually fixing the /usr/share/applications/google-chrome-unstable.desktop file to reference 'Icon=google-chrome' makes it work.

thanks
Comment 4 by Deleted ...@, Dec 30 2014
Same problem here on 3.17.7-200.fc20.x86_64 with google-chrome-beta-40.0.2214.45-1.x86_64
Still an issue with google-chrome-beta-41.0.2272.43-1.x86_64
The same issue with Fedora 21 and Google Chrome 43 Dev.
Comment 8 by mmoss@chromium.org, Apr 14 2015
Cc: tkonch...@chromium.org
 Issue 397315  has been merged into this issue.
Same problem here.
Cc: thomasanderson@chromium.org
So are we going to make progress on https://codereview.chromium.org/410413004/ or should thomasanderson@ take a shot at this?  Bug 354571  is probably somewhat related.
Sign in to add a comment