I am trying to use sway under Silverblue. My environment is created like this:
Start from Silverblue 33, fully upgrade, reboot
sudo rpm-ostree install sway gparted
sudo systemctl set-default multi-user.target
reboot
Login, then run sway
Now:
If I press Super-D, search for gparted and run, no response
Open a terminal by Super-Enter,
$ gparted
localuser:root being added to access control list
Error executing command as another user: No authentication agent found.
localuser:root being removed from access control list
now try with sudo gparted
$ sudo gparted
No protocol specified
Unable to init server: Could not connect: Connection refused
(gpartedbin:10765): Gtk-WARNING **: 05:07:22.942: cannot open display: :1
GNOME session has its own agent and it starts automatically when you login to GNOME. You probably don’t have a polkit agent atm, you need to install one and start it manually when you log in. There are various way to start programs, e.g. you can start it from the sway’s configuration file:
exec lxpolkit
Change lxpolkit with your desired agent. You need to specify full path if it is not in your PATH.