![无法确定我们所在的会话](https://linux22.com/image/224133/%E6%97%A0%E6%B3%95%E7%A1%AE%E5%AE%9A%E6%88%91%E4%BB%AC%E6%89%80%E5%9C%A8%E7%9A%84%E4%BC%9A%E8%AF%9D.png)
我目前正在运行 GarudaLinux(ArchLinux) ,以 Wayland 和 Hyprland 作为 WM。
在禁用 GPU 添加虚拟化时,我丢失了 polkit 配置,并且无法再运行代理:
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
我得到以下结果:
(polkit-gnome-authentication-agent-1:4805): polkit-gnome-1-WARNING **: 02:46:05.776: Unable to determine the session we are in: No session for pid 4805```
运行:loginctl
SESSION UID USER SEAT TTY STATE IDLE SINCE
2 1000 echeleon seat0 tty1 active no
Polkit服务状态
systemctl status polkit.service
● polkit.service - Authorization Manager
Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
Active: active (running) since Sun 2023-09-03 02:45:27 BST; 14min ago
Docs: man:polkit(8)
Main PID: 1015 (polkitd)
Tasks: 4 (limit: 75983)
Memory: 7.5M
CPU: 95ms
CGroup: /system.slice/polkit.service
└─1015 /usr/lib/polkit-1/polkitd --no-debug
Sep 03 02:45:27 echeleon systemd[1]: Starting Authorization Manager...
Sep 03 02:45:27 echeleon polkitd[1015]: Started polkitd version 123
Sep 03 02:45:27 echeleon polkitd[1015]: Loading rules from directory /etc/polkit-1/rules.d
Sep 03 02:45:27 echeleon polkitd[1015]: Loading rules from directory /usr/share/polkit-1/rules.d
Sep 03 02:45:27 echeleon polkitd[1015]: Finished loading, compiling and executing 11 rules
Sep 03 02:45:27 echeleon polkitd[1015]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Sep 03 02:45:27 echeleon systemd[1]: Started Authorization Manager.
老实说,我对这一切都很陌生,所以我不知道该做什么/搜索什么。
我可以尝试或搜索什么?在网上查看时提到了elogind
- 但这之前是有效的,我不确定到底该怎么做才能让它发挥作用。
任何指点,不胜感激。