diff --git a/virtManager/lib/connectauth.py b/virtManager/lib/connectauth.py index cc83e4693..71e1b21f0 100644 --- a/virtManager/lib/connectauth.py +++ b/virtManager/lib/connectauth.py @@ -204,7 +204,8 @@ def connect_error(conn, errmsg, tb, warnconsole): ################################## def setup_first_uri(config, tryuri): - libvirtd_installed = bool(shutil.which("libvirtd")) + # Add /usr/sbin to the path in case non-root user launches virt-manager + libvirtd_installed = bool(shutil.which("libvirtd", path=os.environ['PATH'] + os.pathsep + "/usr/sbin")) if config.CLITestOptions.fake_no_libvirtd: libvirtd_installed = False