From 6fabe3d0af362a3325ba9ff2c7da08325cf9fb37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 21 May 2021 23:27:39 +0200 Subject: [PATCH] Start widgets only in dom0 and guivm Other VMs do not have appropriate Admin API access, which will result in log spamming (and a lot of notifications). QubesOS/qubes-issues#4186 --- qui/widget-wrapper | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qui/widget-wrapper b/qui/widget-wrapper index d237bede..a66b1006 100755 --- a/qui/widget-wrapper +++ b/qui/widget-wrapper @@ -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=$?