Dejvino / pinephone-sway-poc

Sway UI configured for PinePhone (Proof Of Concept)
Apache License 2.0
106 stars 10 forks source link

elogind-inhibit permissions problem #3

Open Dejvino opened 4 years ago

Dejvino commented 4 years ago

Sway fails to start since elogind-inhibit that should start it fails with Access denied. Seems like some permissions need to be fixed. Related file: /usr/share/wayland-sessions/sway.desktop

Dejvino commented 4 years ago

A workaround is to comment out this line:

Exec=elogind-inhibit --what=shutdown:handle-power-key --mode=block dbus-run-session /usr/bin/sway

and enable (remove the comment) from the next line:

Exec=dbus-run-session /usr/bin/sway

plus let logind know to ignore the power button by editing its config file.

klundry commented 4 years ago

Where is the logind config file located? I don't see it in /etc