diff options
author | Fun <just.the.real.fun@gmail.com> | 2017-11-05 22:02:34 +0200 |
---|---|---|
committer | Fredrik Rinnestam <fredrik@crux.nu> | 2017-11-05 21:49:47 +0100 |
commit | 83e4e5ce5e20ec651c09a138ee3990ebb8d61353 (patch) | |
tree | 7285757ed6f399119f64377d306614ecd8131e4e /adwaita-icon-theme | |
parent | ced927c5d65a3b6d56ce4bbbdcc2eed5f11f718a (diff) | |
download | opt-83e4e5ce5e20ec651c09a138ee3990ebb8d61353.tar.gz opt-83e4e5ce5e20ec651c09a138ee3990ebb8d61353.tar.xz |
adwaita-icon-theme: make post-install succeed when gtk is not installed
gtk-update-icon-cache is not installed with gtk3,
probably to avoid a conflict with gtk,
but it is better to exit without an error (right?).
Diffstat (limited to 'adwaita-icon-theme')
-rw-r--r-- | adwaita-icon-theme/post-install | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/adwaita-icon-theme/post-install b/adwaita-icon-theme/post-install index d93cc2bc5..241c89943 100644 --- a/adwaita-icon-theme/post-install +++ b/adwaita-icon-theme/post-install @@ -1,4 +1,7 @@ #!/bin/sh gdk-pixbuf-query-loaders --update-cache -gtk-update-icon-cache -q -t -f /usr/share/icons/Adwaita +# gtk-update-icon-cache comes with gtk, not with gtk3 +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q -t -f /usr/share/icons/Adwaita +fi |