You are not logged in.

#1 2017-11-17 21:20:13

Gerche
Member
Registered: 2017-11-15
Posts: 5

[SOLVED] Error when starting gnome-terminal

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

#2 2017-11-17 21:42:04

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: [SOLVED] Error when starting gnome-terminal

Outputs of

locale
locale -a
localectl

?

Offline

#3 2017-11-17 21:48:44

Gerche
Member
Registered: 2017-11-15
Posts: 5

Re: [SOLVED] Error when starting gnome-terminal

seth wrote:

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

#4 2017-11-17 21:51:40

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: [SOLVED] Error when starting gnome-terminal

Why are you running all this as root (notably including the gnome-terminal call, just noticed)?

Offline

#5 2017-11-17 22:06:18

Gerche
Member
Registered: 2017-11-15
Posts: 5

Re: [SOLVED] Error when starting gnome-terminal

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

#6 2017-11-17 22:40:15

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Error when starting gnome-terminal

Are you using Gnome under X or Wayland?  Wayland doesn't allow you to run GUI root programs.

Offline

#7 2017-11-17 23:47:47

Gerche
Member
Registered: 2017-11-15
Posts: 5

Re: [SOLVED] Error when starting gnome-terminal

circleface wrote:

Are you using Gnome under X or Wayland?  Wayland doesn't allow you to run GUI root programs.

I'm using X.

Offline

#8 2017-11-18 00:03:31

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 653

Re: [SOLVED] Error when starting gnome-terminal

circleface wrote:

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

#9 2017-11-18 08:10:54

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: [SOLVED] Error when starting gnome-terminal

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)

Offline

Board footer

Powered by FluxBB