Skip to content

Commit

Permalink
Start widgets only in dom0 and guivm
Browse files Browse the repository at this point in the history
Other VMs do not have appropriate Admin API access, which will result in
log spamming (and a lot of notifications).

QubesOS/qubes-issues#4186
  • Loading branch information
marmarek committed May 21, 2021
1 parent 78bf15c commit 6fabe3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qui/widget-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ if [[ $# -lt 1 ]] ; then
exit 1
fi

if ! [ -e /etc/qubes-release ] && ! [ -e /var/run/qubes-service/guivm ]; then
echo "not dom0 or guivm, exiting"
exit 0
fi

"$@"

exit_code=$?
Expand Down

0 comments on commit 6fabe3d

Please sign in to comment.