Generate only select appmenus for AppVMs
The appmenus/whitelisted-appmenus.list file now specifies which *.desktop files should make it into the AppVM's apps/ directory. Also include those *.desktop files that have OnlyShownIn attribute
This commit is contained in:
parent
dc657c9116
commit
f4a3f6dec9
@ -3,13 +3,14 @@ SRC=$1
|
|||||||
DSTDIR=$2
|
DSTDIR=$2
|
||||||
DST=$DSTDIR/$(basename $SRC)
|
DST=$DSTDIR/$(basename $SRC)
|
||||||
|
|
||||||
# Do not copy KDE/GNOME specific apps, e.g. "Home", "Find files", etc
|
if ! grep -q ^Name $SRC ; then
|
||||||
if grep -q OnlyShowIn $SRC ; then
|
echo "WARNING: app $SRC doesn't have Name keyword, skipping..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q ^Name $SRC ; then
|
# Skip all the appmenus not explicitly white-listed
|
||||||
echo "WARNING: app $SRC doesn't have Name keyword, skipping..."
|
DESKTOP_NAME=$(basename $SRC)
|
||||||
|
if ! grep -q ^$DESKTOP_NAME$ appmenus/whitelisted-appmenus.list ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ sed -e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/" \
|
|||||||
grep -v "^Mime" | \
|
grep -v "^Mime" | \
|
||||||
grep -v "^Icon" | \
|
grep -v "^Icon" | \
|
||||||
grep -v "^TryExec" | \
|
grep -v "^TryExec" | \
|
||||||
|
grep -v "^OnlyShowIn" | \
|
||||||
grep -v "^Startup" >$DST
|
grep -v "^Startup" >$DST
|
||||||
|
|
||||||
echo X-Qubes-VmName=%VMNAME% >> $DST
|
echo X-Qubes-VmName=%VMNAME% >> $DST
|
||||||
|
@ -9,6 +9,7 @@ sed -e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/" \
|
|||||||
<$SRC | \
|
<$SRC | \
|
||||||
grep -v "^Mime" | \
|
grep -v "^Mime" | \
|
||||||
grep -v "^TryExec" | \
|
grep -v "^TryExec" | \
|
||||||
|
grep -v "^OnlyShowIn" | \
|
||||||
grep -v "^Startup" >$DST
|
grep -v "^Startup" >$DST
|
||||||
|
|
||||||
#echo "Categories=%VMNAME%" >> $DST
|
#echo "Categories=%VMNAME%" >> $DST
|
||||||
|
16
appmenus/whitelisted-appmenus.list
Normal file
16
appmenus/whitelisted-appmenus.list
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
gnome-terminal.desktop
|
||||||
|
gnome-nautilus-home.desktop
|
||||||
|
dolphin.desktop
|
||||||
|
manage-print-jobs.desktop
|
||||||
|
mozilla-firefox.desktop
|
||||||
|
mozilla-thunderbird.desktop
|
||||||
|
openoffice.org-calc.desktop
|
||||||
|
openoffice.org-draw.desktop
|
||||||
|
openoffice.org-impress.desktop
|
||||||
|
openoffice.org-math.desktop
|
||||||
|
openoffice.org-writer.desktop
|
||||||
|
Kontact.desktop
|
||||||
|
kcalc.desktop
|
||||||
|
kwrite.desktop
|
||||||
|
ksysguard.desktop
|
||||||
|
fedora-keepassx.desktop
|
Loading…
Reference in New Issue
Block a user