Re: Unable to start gnome-terminal from KDE session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,
** Jeremy Brown [2017-06-07 17:46:54 +0000]:

> Hello arch-general!
> 
> I have a laptop running the latest KDE / Plasma, but I use gnome-terminal as my
> terminal app.  Recently I noticed that when I launch gnome-terminal from the
> KDE start menu, it takes an incredibly long time to launch (maybe 20+ seconds)
> and when it does launch, I just get a flashing prompt with no actual shell.  If
> I launch a second gnome-terminal after that, *that* gnome-terminal seems fine.
> I get a normal working shell.  If I launch xterm then the xterm is fine.
> 
> Running "journalctl -f" while I launch the initial gnome-terminal instance
> shows:

[...]

> Googling that core dump led me to:
> 
> https://bbs.archlinux.org/viewtopic.php?id=224787
> 
> ...which led me to:
> 
> https://github.com/flatpak/xdg-desktop-portal-gtk/issues/72
> 
> ...which sounds a bit like what I'm seeing, at least the slowness part.
> However, I use SDDM, so I can't put the recommended
> dbus-update-activation-environment in any .xinitrc file (which is only run when
> you do startx as far as I know).

/etc/sddm.conf:
  ...
  # Path to a script to execute when starting the desktop session                                       
  SessionCommand=/usr/share/sddm/scripts/Xsession
  ...

/usr/share/sddm/scripts/Xsession:
  ...
  USERXSESSION=$HOME/.xsession
  ...
  if [ -f "$USERXSESSION" ]; then
    . "$USERXSESSION"
  fi

https://bbs.archlinux.org/viewtopic.php?id=224787

dumblob:
  ...
  and the solution seems to be adding

  dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS
  DISPLAY XAUTHORITY

  to .xinitrc or .xsession .

> So, two questions:
> 
> (1) Where would I put this command so that it's run by SDDM on login?
> 
> (2) Is there a bug here where some script in /etc somewhere should be doing
> this?  I poked around thinking maybe there was a .pacnew for some Xorg / SDDM
> related file that might have this, but I didn't see anything.  Mostly just
> wondering if I should file a bug.
> 
> Jeremy

---
WBR, Vladimir Lomov

-- 
	A young married couple had their first child.  Their original pride
and joy slowly turned to concern however, for after a couple of years the
child had never uttered any form of speech.  They hired the best speech
therapists, doctors, psychiatrists, all to no avail.  The child simply refused
to speak.  One morning when the child was five, while the husband was reading
the paper, and the wife was feeding the dog, the little kid looks up from
his bowl and said, "My cereal's cold."
	The couple is stunned.  The man, in tears, confronts his son.  "Son,
after all these years, why have you waited so long to say something?".
	Shrugs the kid, "Everything's been okay 'til now".



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux