diff --git a/qubesagent/firewall.py b/qubesagent/firewall.py index 952bcc1b0..94c14ab96 100755 --- a/qubesagent/firewall.py +++ b/qubesagent/firewall.py @@ -198,13 +198,13 @@ def log_error(self, msg): ['runuser', '-u', user, '--', 'notify-send', '-t', '8000', '--icon=network-error', msg], env={'DISPLAY': ':0', - 'PATH': '/usr/sbin:/usr/bin', + 'PATH': '/usr/sbin:/usr/bin:/sbin:/bin', #dbus address is needed on fedora, but optional on debian 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/{}/bus'.format( uid)}, stderr=subprocess.STDOUT, ) - except subprocess.SubprocessError as e: + except Exception as e: self.log.error( 'Failed to notify the user about: {} ({})'.format( msg, str(e)