Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2855)

Unified Diff: chrome/installer/linux/common/postinst.include

Issue 2701703002: installer/linux: add symbolic icon for use in gnome-shell
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/linux/common/postinst.include
diff --git a/chrome/installer/linux/common/postinst.include b/chrome/installer/linux/common/postinst.include
index c659d9a5150a1f1ac9175d27270b289dca589450..12a2ea9e0d04126e1854b075e787fab9a6a0c1f2 100644
--- a/chrome/installer/linux/common/postinst.include
+++ b/chrome/installer/linux/common/postinst.include
@@ -9,6 +9,11 @@ for icon in "@@INSTALLDIR@@/product_logo_"*.png; do
"$XDG_ICON_RESOURCE" install --size "${size%.png}" "$icon" "@@PACKAGE@@"
done
+for icon in "@@INSTALLDIR@@/product_symbolic_logo_"*.symbolic.png; do
Tom (Use chromium acct) 2017/02/23 03:11:35 Would it be possible to combine this and the above
+ size="${icon##*/product_symbolic_logo_}"
+ "$XDG_ICON_RESOURCE" install --size "${size%.symbolic.png}" "$icon" "@@PACKAGE@@-symbolic.symbolic"
Lei Zhang 2017/02/23 07:28:31 Like with most code, we limit ourselves to 80 char
+done
+
UPDATE_MENUS="`which update-menus 2> /dev/null || true`"
if [ -x "$UPDATE_MENUS" ]; then
update-menus

Powered by Google App Engine
This is Rietveld 408576698