You are not logged in.
I installed i3 on a vanilla Arch, then GNOME (just to have some handy utilities).
I am configuring Polybar and I have inserted a key to log out (end the GNOME session) with
/usr/bin/gnome-session-quit --logout. When I press this key I get:
Failed to call logout: GDBus.Error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service filesIn my i3 config file I have this:
# i3 integration with GNOME
exec --no-startup-id /usr/lib/gsd-xsettings
exec --no-startup-id gnome-flashback
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1How can I solve?
Offline
Do you start i3 w/ xinit/startx?
See the last link in my signature…
Offline
Do you start i3 w/ xinit/startx?
See the last link in my signature…
Uhm..i have GDM
Offline
Ah, it's not a dbus issue - you try to end a gnome session, but never ran gnome-session itfp.
Offline
Ah, it's not a dbus issue - you try to end a gnome session, but never ran gnome-session itfp.
Ok, I understand the problem.
But it is strange, because I copied the configuration of i3 from an online setup that works (the gnome popup appears asking whether to close the session, lock the screen or cancel). Is there any way I can still fix it? If I start a canonical Gnome session I get an error.
# i3 integration with GNOME
exec --no-startup-id /usr/lib/gsd-xsettings
exec --no-startup-id gnome-flashback
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1Offline
What online setup?
You could try to dbus-launch polkit, but I guess the "correct" solution would be to define a gnome session that uses i3, https://aur.archlinux.org/packages/i3-gnome/
Offline
What online setup?
You could try to dbus-launch polkit, but I guess the "correct" solution would be to define a gnome session that uses i3, https://aur.archlinux.org/packages/i3-gnome/
I installed the one you recommended,i3-gnome.
Now when I run
/usr/bin/gnome-session-quit- --logoutI no longer have any errors, but nothing happens in the terminal. Poweroff (/usr/bin/gnome-session-quit --power-off) works fine.
Last edited by gennaroX (2020-10-08 17:05:16)
Offline
The trailing dash is a local typo?
You mean you don't get some logout dialog? Do you get one for the power-off?
Does "… --force --no-prompt" work?
Offline