You are not logged in.

#1 2019-09-21 00:48:53

nhasian
Member
From: AZ, USA
Registered: 2012-12-13
Posts: 31

[Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

linux 5.3
nvidia drivers 435.21
gnome-shell 3.34

per the wiki, I have added nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs in the MODULES section of /etc/mkinitcpio.conf

I start a wayland session with the command:

XDG_SESSION_TYPE=wayland dbus-run-session gnome-session

I can open other applications like firefox, google-chrome, calculator, solitaire, etc. However, when I try to open a terminal emulator, it briefly appears on the screen and then disappears. It's not exclusive to gnome-terminal. I have also tried termite, kitty, terminology, and urxvt. Basically, I can't get any terminal emulator to work during a wayland session.

Any idea what I'm doing wrong here?

Last edited by nhasian (2019-09-21 19:36:51)


MSI MEG Z390 ACE Motherboard, Intel Core i7-9700K, MSI GeForce RTX 2080

Offline

#2 2019-09-21 03:24:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,429

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

Don't use dbus-run-session that breaks the dbus session setup by systemd, also what's your locale?

localectl
hostnamectl

Online

#3 2019-09-21 04:23:47

nhasian
Member
From: AZ, USA
Registered: 2012-12-13
Posts: 31

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

localectl 
   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

and

hostnamectl 
   Static hostname: msiace
   Pretty hostname: MSIACE
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: xxxx
           Boot ID: xxxx
  Operating System: Arch Linux
            Kernel: Linux 5.3.0-arch1-1-ARCH
      Architecture: x86-64

I just tried starting gnome-shell without dbus-run-session:

XDG_SESSION_TYPE=wayland gnome-session

That did not launch for me at all. I just got a blinking curser and had to terminate it with Control-C. The wiki said to use dbus-run-session https://wiki.archlinux.org/index.php/GN … d_sessions

Last edited by nhasian (2019-09-21 04:30:17)


MSI MEG Z390 ACE Motherboard, Intel Core i7-9700K, MSI GeForce RTX 2080

Offline

#4 2019-09-21 07:21:44

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

and urxvt

How exactly do you run "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session"?
Did you maybe place it somewhere in your bashrc or .bash_profile for an autologin feature?

Offline

#5 2019-09-21 13:59:39

nhasian
Member
From: AZ, USA
Registered: 2012-12-13
Posts: 31

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

That's a good question. So I don't have to type it by hand each time I launch Gnome-shell, I just created an alias and put it in my .bashrc

seth wrote:

and urxvt

How exactly do you run "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session"?
Did you maybe place it somewhere in your bashrc or .bash_profile for an autologin feature?


MSI MEG Z390 ACE Motherboard, Intel Core i7-9700K, MSI GeForce RTX 2080

Offline

#6 2019-09-21 14:08:26

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

Please post .bashrc and .bash_profile - the entire thing smells like your shell fails to start.

Offline

#7 2019-09-21 19:35:37

nhasian
Member
From: AZ, USA
Registered: 2012-12-13
Posts: 31

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

Seth you hit the nail on the head! I renamed my .bashrc and copied over a fresh one from /etc/skel and then the terminal started working in Gnome-shell in a wayland session! I think the only unusual thing I have in there is

# Only load Liquid Prompt in interactive shells, not from a script or from scp
[[ $- = *i* ]] && source /usr/bin/liquidprompt

That may have caused my problem.

seth wrote:

Please post .bashrc and .bash_profile - the entire thing smells like your shell fails to start.


MSI MEG Z390 ACE Motherboard, Intel Core i7-9700K, MSI GeForce RTX 2080

Offline

#8 2019-09-21 19:54:38

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved] Gnome-Shell gnome-terminal crashes upon starting with wayland

Looks like an OMZ contender…
You can run eg. "urxvt -hold" to prevent the window from closing and see whether bash yells some error at you, maybe "urxvt -hold -e bash -x" to run bash in debug mode.

Offline

Board footer

Powered by FluxBB