1. Remove appmenus - regenerate them at installation time (start the template for that) 2. Remove volatile.img - regenerate it at installation time This way, the only real data carried in template rpm is root.img.pull/1/head
parent
0716de226c
commit
c9809c7d6e
@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
SRC=$1
|
||||
DSTDIR=$2
|
||||
DST=$DSTDIR/$(basename $SRC)
|
||||
|
||||
if ! grep -q ^Name $SRC ; then
|
||||
echo "WARNING: app $SRC doesn't have Name keyword, skipping..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sed -n -e "/^\[Desktop Entry\]$/p" \
|
||||
-e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/p" \
|
||||
-e "s/^\(GenericName.*\)=\(.*\)/\1=%VMNAME%: \2/p" \
|
||||
-e "s/^Exec=\(.*\)/Exec=qvm-run -q --tray -a %VMNAME% \'\1\'/p" \
|
||||
-e "/^Comment.*=/p" \
|
||||
-e "/Categories=/p" <$SRC >$DST
|
||||
|
||||
echo X-Qubes-VmName=%VMNAME% >> $DST
|
||||
echo Icon=%VMDIR%/icon.png >> $DST
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
APPSORIG=$1
|
||||
APPSTMPL=$2
|
||||
|
||||
if [ $# != 2 ]; then
|
||||
echo "usage $0 <apps_orig_dir> <apps_templ_dir>"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
rm -f $APPSTMPL/*
|
||||
mkdir -p $APPSTMPL
|
||||
find $APPSORIG/ -name "*.desktop" -exec ./convert_app2template.sh {} $APPSTMPL \;
|
Loading…
Reference in new issue