You are not logged in.

#1 2024-07-10 14:07:06

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

[SOLVED]gnome session from login prompt

I made a fresh install of arch and still on the early process to set everything according to my wishes. My install is very basic with no fancy tricks.
At first glance everything is working fine, but looking at journalctl entries, I found this warning:

gnome-session-binary[948]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login.

I start my gnome session from a login shell this way:

$ XDG_SESSION_TYPE=wayland dbus-run-session gnome-session

What shall I check/do to fix this issue?

Last edited by gabx (2024-07-15 11:48:07)

Offline

#2 2024-07-10 14:56:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,102

Re: [SOLVED]gnome session from login prompt

Drop the dbus-run-session, it shouldn't be necessary and will create a disjoint DBUS in relation to your login session.

Offline

#3 2024-07-10 15:19:12

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: [SOLVED]gnome session from login prompt

If I drop it, the session doesn't start. After I enter the command, I come back to the login prompt.
How can I debug this issue and know why the command does not launch the session?

Offline

#4 2024-07-10 15:33:23

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,284

Re: [SOLVED]gnome session from login prompt

Same as https://bbs.archlinux.org/viewtopic.php?id=297181
Gnome probably depends on GDM lol

Offline

#5 2024-07-10 15:49:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,102

Re: [SOLVED]gnome session from login prompt

Ah that slipped past me... I'd not be the least surprised if that was the case.

Offline

#6 2024-07-10 15:56:30

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: [SOLVED]gnome session from login prompt

It looks like this is the correct way to go. The trick is I have been running arch for long now and on many occasions I was happy to to access command line to fix some issues from my desktop environment. Loging directly to gnome annoys me.
In your opinion, is there any potential serious damage to keep my current set up?

Last edited by gabx (2024-07-10 15:58:32)

Offline

#7 2024-07-10 19:06:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,284

Re: [SOLVED]gnome session from login prompt

https://man.archlinux.org/man/core/dbus … ssion.1.en will break integration w/ the logind provided session bus.

This isn't a good approach and it seriously should needs to be possible to start gnome regardless of any DM (so far I was just joking, though…)
Do you get the same errors as in https://bbs.archlinux.org/viewtopic.php … 4#p2180724 ?

It's not an ideal solution either, but you could try to set XDG_SESSION_TYPE in the getty service, https://wiki.archlinux.org/title/Getty#Virtual_console (ignore the autologin/start part - unless you want that wink
Does that
1. combat the error from the other thread?
2. allow you to start gnome w/o dbus-run-session ?

Last edited by seth (2024-07-10 19:07:13)

Offline

#8 2024-07-11 14:26:54

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: [SOLVED]gnome session from login prompt

Here is part of journalctl

Jul 11 16:20:39 magnolia gnome-session-binary[19328]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Jul 11 16:20:39 magnolia gnome-session[19328]: gnome-session-binary[19328]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Jul 11 16:20:39 magnolia gnome-session[19328]: gnome-session-binary[19328]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 11 16:20:39 magnolia gnome-session-binary[19328]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 11 16:20:39 magnolia gnome-session-binary[19328]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 11 16:20:39 magnolia gnome-session[19328]: gnome-session-binary[19328]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 11 16:20:39 magnolia gnome-session-binary[19328]: WARNING: Could not check if unit gnome-session-wayland@gnome.target is active: Error calling StartServiceByName for org.freedesktop.systemd1: Process org.freedesktop.systemd1 exited with status 1
Jul 11 16:20:39 magnolia gnome-session[19328]: gnome-session-binary[19328]: WARNING: Could not check if unit gnome-session-wayland@gnome.target is active: Error calling StartServiceByName for org.freedesktop.systemd1: Process org.freedesktop.systemd1 exited w>
Jul 11 16:20:39 magnolia gnome-session-binary[19328]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 11 16:20:39 magnolia gnome-session[19328]: gnome-session-binary[19328]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist

Now, when using a drop in file :

# systemctl edit getty@tty1.service --drop-in=wayland.conf

[Service]
XDG_SESSION_TYPE=wayland

does not change at login prompt. Just running gnome-session will not start the session

Last edited by gabx (2024-07-11 15:00:55)

Offline

#9 2024-07-11 14:33:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,284

Re: [SOLVED]gnome session from login prompt

That looks like a session started w/ dbus-run-session?
YOu're looking for sth. like "is not a graphical session (type: 'tty')"

Offline

#10 2024-07-11 15:29:36

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: [SOLVED]gnome session from login prompt

yes journalctl output is when running a dbus-session.

From journalctl with the drop in file, I found this entry:

/etc/systemd/system/getty@tty1.service.d/wayland.conf:2: Unknown key 'XDG_SESSION_TYPE' in section [Service], ignoring.

So it looks like my drop in file has not been correctly written.
How shall I write your suggestion?

Offline

#11 2024-07-11 19:10:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,284

Re: [SOLVED]gnome session from login prompt

The wiki actually lists the correct line, "Environment=XDG_SESSION_TYPE=wayland" (yes, there're two "=")

Offline

#12 2024-07-15 11:46:52

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

Re: [SOLVED]gnome session from login prompt

I decided to use gdm, as all the apps are now working right of the box, when before they were broken.
I mark the topic as solved, even if it is not really solved as I don't have a clean way to start gnome-session from login prompt.

Offline

#13 2024-07-15 15:20:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,284

Re: [SOLVED]gnome session from login prompt

exporting the XDG_SESSION_TYPE in the getty didn't work? Or didn't help?

Offline

Board footer

Powered by FluxBB