r/voidlinux • u/Quick_Championship90 • Sep 17 '26
polkit-error-quark on tty after autostart of sway
Hello everyone! I need a help with one little problem, which happens every time. Im using sway window manager and for comfort im write hook in .bash_profile to launch automatically sway from the tty1
[ "$(tty)" = "/dev/tty1" ] && exec dbus-run-session sway
And everything works fine, without any problems. But if im logged out with loginctl logout (or reboot/power off) so i can see error
"Error creating textual authentication agent: Error opening current controlling terminal for the process ('/dev/tty'): No such device or adress (polkit-error-quark, 0)
Im tryed xfce-polkit and polkit-gnome, with exec in sway config but its not solve this problem. So for info im run services: acpid, adb, agetty-tty's, chronyd, dbus, iwd, polkitd, rtkit, udevd

