Call qubes.PostInstall service to notify dom0 about all apps/features

Update dom0 about all applications installed, not only desktop files for
them. Update also supported features and other things advertised
initially at template installation.

Fixes QubesOS/qubes-issues#3579
This commit is contained in:
Marek Marczykowski-Górecki 2018-02-13 17:05:42 +01:00
parent f38e204aa7
commit 3ddd687286
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
4 changed files with 10 additions and 11 deletions

View File

@ -6,6 +6,6 @@ Operation = Remove
Target = usr/share/applications/*.desktop Target = usr/share/applications/*.desktop
[Action] [Action]
Description = Updating the Qubes desktop file App Icons... Description = Updating the Qubes desktop file App Icons and features...
When = PostTransaction When = PostTransaction
Exec = /usr/lib/qubes/qubes-trigger-sync-appmenus.sh Exec = /etc/qubes-rpc/qubes.PostInstall

View File

@ -181,8 +181,8 @@ case "${1}" in
dconf update || true dconf update || true
# Update Qubes App Menus # tell dom0 about installed updates (applications, features etc)
/usr/lib/qubes/qubes-trigger-sync-appmenus.sh || true /etc/qubes-rpc/qubes.PostInstall || true
;; ;;
abort-upgrade|abort-remove|abort-deconfigure) abort-upgrade|abort-remove|abort-deconfigure)
@ -194,8 +194,8 @@ case "${1}" in
case "${trigger}" in case "${trigger}" in
/usr/share/applications) /usr/share/applications)
debug "Updating Qubes App Menus..." debug "Updating Qubes App Menus and advertising features..."
/usr/lib/qubes/qubes-trigger-sync-appmenus.sh || true /etc/qubes-rpc/qubes.PostInstall || true
;; ;;
# Install overridden serial.conf init script # Install overridden serial.conf init script

View File

@ -61,6 +61,5 @@ class QubesHooks(dnf.Plugin):
str(len(updates)) str(len(updates))
]) ])
if config.getboolean('main', 'sync-appmenus'): self.log.info("Notifying dom0 about installed applications")
self.log.info("Sending application list and icons to dom0") subprocess.call(['/etc/qubes-rpc/qubes.PostInstall'])
subprocess.call(['/usr/lib/qubes/qubes-trigger-sync-appmenus.sh'])

View File

@ -1,3 +1,3 @@
All executable files with `.sh` suffix in this directory will be executed as All executable files with `.sh` suffix in this directory will be executed as
root just after template installation. Template VM may not have access to the root just after template installation or update. Template VM may
network at this time yet. not have access to the network at this time yet.