You are not logged in.

#1 2017-06-01 23:54:45

loadlover
Member
Registered: 2017-05-10
Posts: 103

Strange error upon starting GNOME 3.24 Wayland from the command line

Hi all,

As referenced in the ArchWiki here, https://wiki.archlinux.org/index.php/GN … d_sessions, GNOME 3.24 Wayland can be started up by typing the following from the command line:

XDG_SESSION_TYPE=wayland dbus-run-session gnome-session

In my case, GNOME *does* run, but it throws the following error _repeatedly_ first:

Activating service name='org.freedesktop.systemd1'
Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1

(The ArchWiki also mentions some stuff about .bash_profile, but this doesn't help me.)

Any ideas?

Thanks,

Loady

Offline

#2 2017-06-02 00:16:50

netadmin
Member
Registered: 2016-04-28
Posts: 45

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

Sounds like this issue https://bugzilla.gnome.org/show_bug.cgi?id=780801. They also mention a potential work around of appending

&& [[ -z $XDG_SESSION_TYPE ]]

I don't have GNOME setup at the moment to confirm.

Offline

#3 2017-06-02 00:26:15

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

No, sadly that isn't it/doesn't work:(

Last edited by loadlover (2017-06-02 00:27:28)

Offline

#4 2017-06-02 07:04:10

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

systemctl --user status dbus.service
echo $DBUS_SESSION_BUS_ADDRESS

?

https://github.com/systemd/systemd/issues/5247

Offline

#5 2017-06-02 07:47:39

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

seth wrote:
systemctl --user status dbus.service
echo $DBUS_SESSION_BUS_ADDRESS

?

https://github.com/systemd/systemd/issues/5247

Hi Seth,

Yes, I've seen that. That is exactly this problem. A bunch of people are experiencing this. Damn and bloody blast it! No solution yet...

Loady

Offline

#6 2017-06-02 07:55:10

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

And what is the output of the mentioned commands on your side ...?

Offline

#7 2017-06-02 19:06:20

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

Hi Seth,

Here's what I get:

# systemctl --user status dbus.service

dbus.service - D-Bus User Message Bus
Loaded:  loaded (/usr/lib/systemd/user/dbus.service; static; vendor preset: enabled)
Drop-In:  /usr/lib/systemd/user/dbus.service.d
  -flatpak.conf
Active:  inactive (dead)
Docs:  man:dbus-daemon(1)

# echo $DBUS_SESSION_BUS_ADDRESS

unix:path=/run/user/0/bus

Oh, btw I had to do this manually by photographing the screen! Which log can I get this from (i.e. the log of tty1 just after logging in)?

Last edited by loadlover (2017-06-04 19:39:31)

Offline

#8 2017-06-02 19:14:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

You can upload the output of commands using a pastebin service...

https://wiki.archlinux.org/index.php/Li … in_clients


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-06-02 19:18:03

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

unix:path=/run/user/0/bus

Do you login as root??

Offline

#10 2017-06-02 20:52:21

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

seth wrote:

unix:path=/run/user/0/bus

Do you login as root??

Yes...

Offline

#11 2017-06-02 20:53:59

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

I'm afraid to ask why, but what happens is you don't? Can you start gnome w/o errors?

Offline

#12 2017-06-02 21:37:21

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

seth wrote:

I'm afraid to ask why, but what happens is you don't? Can you start gnome w/o errors?

Exactly the same thing happens if I'm logged in as a user. Exactly the same errors.

The response to # systemctl --user status dbus.service is identical.

The response to # echo $DBUS_SESSION_BUS_ADDRESS is:

unix:path=/run/user/100/bus

Offline

#13 2017-06-03 20:24:42

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

There is a way around this - i.e. to run GNOME Wayland without the errors, but it may introduce problems of its own.

Open up /usr/share/applications/org.gnome.Shell.desktop in a text editor, and scroll down to the line:

Exec=/usr/bin/gnome-shell

And change it to:

Exec=/usr/bin/gnome-shell --wayland

One can now start GNOME Wayland by simply typing:

gnome-session

I do not understand why this works, but it does. However, typing /usr/bin/gnome-shell --wayland directly into the terminal throws an error. Can someone explain why?

Last edited by loadlover (2017-06-03 20:43:48)

Offline

#14 2017-06-04 18:49:57

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

slithery wrote:

You can upload the output of commands using a pastebin service...

https://wiki.archlinux.org/index.php/Li … in_clients

Hiya Slithery,

If I use something like:

command | curl -F c=@- https://ptpb.pw/

How can I make this really easy? Can I use an alias or a symlink or.. something I've defined in .bash_profile?

Thanks for your help,

Loady

Last edited by loadlover (2017-06-04 18:50:22)

Offline

#15 2017-06-04 19:58:56

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

Try

pastebin() {
   "$@" | curl -F c=@- https://ptpb.pw/
}
    pastebin foo bar

Offline

#16 2017-06-04 21:46:45

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

Wow Seth, thanks. Hey, pastebinning is fun;)

Last edited by loadlover (2017-06-04 21:57:27)

Offline

#17 2018-01-18 20:02:54

jmcornil
Member
Registered: 2018-01-18
Posts: 1

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

Hello

It is a long time since the question has been posted but I succeed to launch Gnome by replacing

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty5 ]] && [[ -z $XDG_SESSION_TYPE ]];  then
XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
fi

by

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty5 ]] && [[ -z $XDG_SESSION_TYPE ]];  then
XDG_SESSION_TYPE=exec dbus-run-session -- gnome-shell --display-server –wayland
fi

It was on tty5/

Hope that it can help somebody

jmcornil

Offline

#18 2020-10-03 02:22:53

EdK
Member
Registered: 2020-09-24
Posts: 5

Re: Strange error upon starting GNOME 3.24 Wayland from the command line

loadlover wrote:

There is a way around this - i.e. to run GNOME Wayland without the errors, but it may introduce problems of its own.

Open up /usr/share/applications/org.gnome.Shell.desktop in a text editor, and scroll down to the line:

Exec=/usr/bin/gnome-shell

And change it to:

Exec=/usr/bin/gnome-shell --wayland

One can now start GNOME Wayland by simply typing:

gnome-session

I do not understand why this works, but it does. However, typing /usr/bin/gnome-shell --wayland directly into the terminal throws an error. Can someone explain why?


Sorry I cannot answer your question. But appending --wayland as you suggested took care of another error that I was receiving. The one that said

           "Unrecoverable failure in required component org.gnome.Shell.desktop"

I've been working to get rid of that error for weeks!!  Thanks for the pointer.

Offline

Board footer

Powered by FluxBB