wok-current view suggested-applications/stuff/default-app @ rev 15186

For some predefined .desktop files: validate, fix, add Russian translations
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 24 15:08:38 2013 +0300 (2013-08-24)
parents 67404973a113
children
line source
1 #!/bin/sh
3 APP="$1"
5 # Auto Install DEPENDS and/or SUGGESTED
6 install() {
7 TMPFILE="/tmp/installlist-$$"
8 #echo "pkgs to install: $1"
9 for pkg in $1 ; do
10 if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
11 echo "$pkg" >> $TMPFILE
12 fi
13 done
15 if [ -f $TMPFILE ] ; then
16 xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close)" \
17 -e "echo -e \"Installing packages as root. This option depends on \n `cat $TMPFILE`\"
18 subox \"tazpkg get-install-list $TMPFILE\"
19 echo -e \"----\nPress ENTER to close and to proceed further...\"
20 read i; exit 0;
21 "
22 rm -f $TMPFILE
23 fi
24 }
26 if [ "$2" == "--install" ] ; then
27 SUGGESTED="$3"
28 install "$SUGGESTED"
29 fi
31 $APP &
33 exit 0