You are not logged in.
Hey guys,
I did a fresh install of arch-linux and after installing gnome I noticed I couldn't start the gnome-terminal.
I get the following output in XTerm:
[root@archlinux wouter]# gnome-terminal
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: The connection is closed
I've found multiple people with similar problems but never the same output or a solution that worked for me.
Example that didn't work:
locale-gen
localectl set-locale LANG="en_US.UTF-8"
Any suggestions on what I could try?
Thanks!
Last edited by Gerche (2017-11-17 23:47:02)
Offline
Outputs of
locale
locale -a
localectl
?
Online
Outputs of
locale locale -a localectl
?
[root@archlinux wouter]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=C
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=C
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=C
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[root@archlinux wouter]# locale -a
C
en_US.utf8
POSIX
[root@archlinux wouter]# localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: be-latin1
X11 Layout: be,us
X11 Variant: ,
Offline
Why are you running all this as root (notably including the gnome-terminal call, just noticed)?
Online
I didn't install sudo yet and I believe I needed some root privileges before, just didn't switch back to my normal user.
So honnestly I don't have a special reason for running all this as root.
I also noticed that I can now open gnome-terminal as a normal user (this wasn't possible before so one of the previous locale commands that I've been trying will probably have fixed this for my normal user).
I do wonder however why I would still get this error when trying to open gnome-terminal as root?
Offline
Are you using Gnome under X or Wayland? Wayland doesn't allow you to run GUI root programs.
Offline
Are you using Gnome under X or Wayland? Wayland doesn't allow you to run GUI root programs.
I'm using X.
Offline
Wayland doesn't allow you to run GUI root programs.
That's a broad statement. Wayland doesn't allow you to sudo run GUI programs as root for very valid security and other reasons. GUI apps which are written correctly and require root access for some functionality will use Polkit etc and these will run fine under Wayland, e.g. gnome-disks as one example.
Also, there are easy workarounds on Wayland, see the wiki.
Offline
The problem is the session dbus, usually you get this message when naively sudo or su'ing from a "regular" login (that's why I asked) but apparently the way you logged in as root didn't create a usable session either (afaik most DMs prevent logging in as root by today because wayland or not: it's not a very good idea)
Online