You are not logged in.

#1 2020-10-08 11:04:21

gennaroX
Member
Registered: 2020-10-08
Posts: 5

Unable to close gnome-session, i3 integration problem?

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 files

In 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-1

How can I solve?

Offline

#2 2020-10-08 14:10:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,706

Re: Unable to close gnome-session, i3 integration problem?

Do you start i3 w/ xinit/startx?
See the last link in my signature…

Offline

#3 2020-10-08 14:13:03

gennaroX
Member
Registered: 2020-10-08
Posts: 5

Re: Unable to close gnome-session, i3 integration problem?

seth wrote:

Do you start i3 w/ xinit/startx?
See the last link in my signature…

Uhm..i have GDM

Offline

#4 2020-10-08 14:30:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,706

Re: Unable to close gnome-session, i3 integration problem?

Ah, it's not a dbus issue - you try to end a gnome session, but never ran gnome-session itfp.

Offline

#5 2020-10-08 14:39:07

gennaroX
Member
Registered: 2020-10-08
Posts: 5

Re: Unable to close gnome-session, i3 integration problem?

seth wrote:

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-1

Offline

#6 2020-10-08 15:35:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,706

Re: Unable to close gnome-session, i3 integration problem?

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

#7 2020-10-08 16:40:26

gennaroX
Member
Registered: 2020-10-08
Posts: 5

Re: Unable to close gnome-session, i3 integration problem?

seth wrote:

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- --logout

I 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

#8 2020-10-08 21:31:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,706

Re: Unable to close gnome-session, i3 integration problem?

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

Board footer

Powered by FluxBB