Skip to content

Commit

Permalink
appmenus: Call qvm-appmenus on menu-items feature change too
Browse files Browse the repository at this point in the history
It is already called on various different occasions, but menu-items
change was missing.

Fixes QubesOS/qubes-issues#8494
  • Loading branch information
marmarek committed Sep 18, 2023
1 parent e56ecad commit 8ed18dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qubesappmenusext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ def on_feature_set_appmenus_dispvm(self, vm, event, feature,
asyncio.ensure_future(self.run_as_user(
['qvm-appmenus', '--quiet', '--force', '--update', vm.name]))

@qubes.ext.handler('domain-feature-set:menu-items')
def on_feature_set_appmenus_dispvm(self, vm, event, feature,
value, oldvalue=None):
asyncio.ensure_future(self.run_as_user(
['qvm-appmenus', '--quiet', '--force', '--update', vm.name]))

@qubes.ext.handler('domain-feature-delete:internal')
def on_feature_del_internal(self, vm, event, feature):
asyncio.ensure_future(self.run_as_user(
Expand Down

0 comments on commit 8ed18dc

Please sign in to comment.