Fix launch icon issue : two icons creation
authorXavier Roche <xavrock.os@gmail.com>
Wed, 15 May 2013 14:16:10 +0000 (16:16 +0200)
committerXavier Roche <xavrock.os@gmail.com>
Wed, 15 May 2013 14:16:10 +0000 (16:16 +0200)
install_widgets.sh

index d4147e096d3973beef730889bbc21af1096e550c..fd4617af7f0a518273697bc706fcd2196b306686 100755 (executable)
@@ -25,30 +25,30 @@ chmod -R a+rw /opt/dbspace/
 
 wrt-launcher --list |
 awk 'NR>2{print $2, $5, $6}' |
-while read name packid appid
-do
-    bin=$repo/$packid/bin/$appid
-    for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do
-       if [[ -f $x ]]; then
-           res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+')
-           if [[ -n "$res" ]]; then
-               diric=/usr/share/icons/hicolor/$res/apps
-               [[ -d $diric ]] || mkdir -p $diric
-               cp $x $diric/$name.png
-           fi
-       fi
-    done
-    desk=/usr/share/applications/$name.desktop
-    cat << EOC > $desk
-[Desktop Entry]
-Type=Application
-Name=$name
-Exec=$bin
-Icon=$name
-Terminal=false
-Categories=WRT;Game
-EOC
-done
+#while read name packid appid
+#do
+#    bin=$repo/$packid/bin/$appid
+#    for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do
+#      if [[ -f $x ]]; then
+#          res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+')
+#          if [[ -n "$res" ]]; then
+#              diric=/usr/share/icons/hicolor/$res/apps
+#              [[ -d $diric ]] || mkdir -p $diric
+#              cp $x $diric/$name.png
+#          fi
+#      fi
+#   done
+#    desk=/usr/share/applications/$name.desktop
+#    cat << EOC > $desk
+#[Desktop Entry]
+#Type=Application
+#Name=$name
+#Exec=$bin
+#Icon=$name
+#Terminal=false
+#Categories=WRT;Game
+#EOC
+#done
 
 update-desktop-database
 xdg-icon-resource forceupdate