debian: add support for qubes appmenus

This commit is contained in:
HW42 2014-11-04 05:53:36 +01:00
parent 457196ba58
commit f9b658e6ad
3 changed files with 23 additions and 15 deletions

View File

@ -1,3 +1,6 @@
#!/bin/bash
if [ "$0" == configure ]; then
# ensure that hostname resolves to 127.0.1.1 resp. ::1 and that /etc/hosts is # ensure that hostname resolves to 127.0.1.1 resp. ::1 and that /etc/hosts is
# in the form expected by qubes-sysinit.sh # in the form expected by qubes-sysinit.sh
for ip in '127\.0\.1\.1' '::1'; do for ip in '127\.0\.1\.1' '::1'; do
@ -13,5 +16,9 @@ done
sed -i "/^127\.0\.0\.1\s/,+0s/\(\s`hostname`\)\+\(\s\|$\)/\2/g" /etc/hosts sed -i "/^127\.0\.0\.1\s/,+0s/\(\s`hostname`\)\+\(\s\|$\)/\2/g" /etc/hosts
chown user:user /home_volatile/user chown user:user /home_volatile/user
fi
echo "Updating Qubes AppMenu."
/usr/lib/qubes/qubes-trigger-sync-appmenus.sh
#DEBHELPER# #DEBHELPER#

1
debian/triggers vendored Normal file
View File

@ -0,0 +1 @@
interest-noawait /usr/share/applications

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
UPDATEABLE=`/usr/bin/xenstore-read qubes-vm-updateable` UPDATEABLE=`xenstore-read qubes-vm-updateable`
if [ "$UPDATEABLE" = "True" ]; then if [ "$UPDATEABLE" = "True" ]; then
/usr/lib/qubes/qrexec-client-vm dom0 qubes.SyncAppMenus /bin/sh /etc/qubes-rpc/qubes.GetAppmenus /usr/lib/qubes/qrexec-client-vm dom0 qubes.SyncAppMenus /bin/sh /etc/qubes-rpc/qubes.GetAppmenus