You are not logged in.

#1 2016-10-19 13:22:35

13Cubed
Member
Registered: 2016-10-19
Posts: 6

GNOME Terminal Issues (dbus-related)

Background:

I'm not new to Linux, and have been using the OS since 1996. I am fairly new to desktop Linux, as most of my experience is server side (BIND, Apache, PKI, etc.). I was previously using Ubuntu GNOME, with no complaints, but decided to give Arch a try. I got the system up and running, with pretty much everything I need; however, I'm having an odd issue with GNOME Terminal.

Firstly, yes, I have researched this within the forums, and there are tons of threads about this topic. I am 99.999% certain this is not a locale problem, as I've already checked and re-checked everything. Upon a reboot or login, Terminal launches the first time without issue. Subsequent launches cause the Terminal to hang. Running it from Terminator, an error message is displayed indicating a timeout (Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited). Someone suggested trying to launch Terminal via Dbus (dbus-launch gnome-terminal), and it DOES work every time. So, obviously I want to fix the issue, not simply modify the launcher arguments for the program. Someone suggested placing "dbus-launch gnome-shell" in ~/.xinitrc, but I have no "xinitrc" because I'm using GDM to manage/start GNOME, not Xorg.

If it helps, when I originally installed the system, I installed GNOME, GNOME-Extra, and other related packages, but NOT Xorg. GNOME was using Wayland, which I missed at first. I went back and installed Xorg, Xorg-utils, Xinit, etc. and changed GDM to use Xorg by default instead of Wayland.

Any suggestions are appreciated.

Offline

#2 2016-10-19 13:32:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: GNOME Terminal Issues (dbus-related)

If using dbus-launch "fixes" the problem, then the root of the problem is likely the lack of a proper logind session for your user as dbus-launch should no longer be explicitly called as the user dbus session is started by systemd-logind.

Can you post the output of the following two commands from Terminator within gnome:

echo $XDG_VTNR
loginctl

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-10-19 13:33:45

13Cubed
Member
Registered: 2016-10-19
Posts: 6

Re: GNOME Terminal Issues (dbus-related)

Thank you - yes, I certainly will. I am at work now, but will do so as soon as I return home.

Offline

#4 2016-10-19 21:25:09

13Cubed
Member
Registered: 2016-10-19
Posts: 6

Re: GNOME Terminal Issues (dbus-related)

echo $XDG_VTNR
2


loginctl
SESSION        UID USER             SEAT           
c2                    1000 arch              seat0           
c1                    120 gdm                seat0           

2 sessions listed.

Offline

#5 2016-10-19 22:43:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: GNOME Terminal Issues (dbus-related)

Assuming "arch" is your user account, that looks reasonable.  So that doesn't seem to be the problem.

EDIT: Of course the UID confirms that's your user account.  So you do seem to have a valid logind session.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2016-10-19 22:57:35

13Cubed
Member
Registered: 2016-10-19
Posts: 6

Re: GNOME Terminal Issues (dbus-related)

Indeed. I'm not sure what else to try.

Offline

#7 2016-10-19 23:20:46

13Cubed
Member
Registered: 2016-10-19
Posts: 6

Re: GNOME Terminal Issues (dbus-related)

I found the problem. As with my other Linux boxes, I am calling screenFetch from .bashrc. If I remove that and log out, I can launch GNOME Terminal every time without fail. Something about screenFetch is causing issues. It will launch the first time, but afterwards no dice.

Offline

#8 2016-10-19 23:49:51

13Cubed
Member
Registered: 2016-10-19
Posts: 6

Re: GNOME Terminal Issues (dbus-related)

Adding "dbus-update-activation-environment --all" to the end of .bashrc seems to correct the issue, and screenFetch no longer freezes the GNOME Terminal.

Offline

Board footer

Powered by FluxBB