[Lunar-commits] <moonbase> vlc: install icons if gnome or xfce present

Zachary McGrew zmcgrew at lunar-linux.org
Thu Mar 12 02:34:11 CET 2009


commit 795d02987a123fc8314de48b4b593ba24f4bb634
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date:   Wed Mar 11 18:34:11 2009 -0700

    vlc: install icons if gnome or xfce present
---
 video/vlc/BUILD |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/video/vlc/BUILD b/video/vlc/BUILD
index c0ee6a9..270e426 100644
--- a/video/vlc/BUILD
+++ b/video/vlc/BUILD
@@ -14,4 +14,15 @@
 
   default_build
 
+  #It's 2009. Why can't VLC install their own icons yet?
+  if module_installed gnome2 || module_installed xfce4 ; then
+    for x in 16x16 32x32 48x48 128x128 ; do
+      ln -sf /usr/share/vlc/vlc$x.png /usr/share/icons/hicolor/$x/apps/vlc.png ;
+    done
+
+    for x in `ls -d /usr/share/icons/*` ; do
+      gtk-update-icon-cache -f $x ;
+    done
+  fi
+
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list