You are not logged in.

#1 2017-05-04 18:32:59

spacekookie
Member
Registered: 2017-04-30
Posts: 8

[SOLVED] Gnome applications taking ages to launch

Hey. Every gnome application I open takes about 10 seconds to open because of a critical log message (see below)

(gnome-screenshot:25566): GLib-GIO-CRITICAL **: g_dbus_proxy_get_name_owner: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(gnome-screenshot:25566): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: The name org.freedesktop.portal.Desktop is not owned

Pretty important to note is that I'm not actually using GNOME. I'm using awesomewm without a login/ display manager. But I do have the gnome and gnome-extra packages installed.

Output from hostnamectrl

  (rayya) ~> hostnamectl status
   Static hostname: rayya
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: 64d8a87339af487483b41306325f2991
           Boot ID: ce7a84486c6e42e9b3dbef58a3fef37e
  Operating System: Arch Linux
            Kernel: Linux 4.10.11-1-ARCH
      Architecture: x86-64

Hope someone has an idea what could be causing this. Thanks

Last edited by spacekookie (2017-05-05 11:46:30)


Polar bears are left handed

Offline

#2 2017-05-04 19:18:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Gnome applications taking ages to launch

How do you start X?

If you use startx, please post your ~/.xinitrc.

Last edited by Slithery (2017-05-04 19:18:49)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-05-04 22:31:39

spacekookie
Member
Registered: 2017-04-30
Posts: 8

Re: [SOLVED] Gnome applications taking ages to launch

slithery wrote:

How do you start X?

If you use startx, please post your ~/.xinitrc.

 ❤ (rayya) ~ cat .xinitrc
setxkbmap de
exec awesome

I guess I'm missing something there that gdm would normally setup for me?


Polar bears are left handed

Offline

#4 2017-05-04 22:46:40

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

Re: [SOLVED] Gnome applications taking ages to launch

Offline

#5 2017-05-04 22:57:42

spacekookie
Member
Registered: 2017-04-30
Posts: 8

Re: [SOLVED] Gnome applications taking ages to launch

seth wrote:

Do you mean this sentence?

Note: At the very least, ensure that the last if block in /etc/X11/xinit/xinitrc is present in your .xinitrc file to ensure that the scripts in /etc/X11/xinit/xinitrc.d are sourced.


So it means add this to my xinitrc?

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

Polar bears are left handed

Offline

#6 2017-05-04 23:07:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Gnome applications taking ages to launch

Correct. You need that at the start of your .xinitrc to correctly setup the user session.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2017-05-04 23:17:25

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] Gnome applications taking ages to launch

To compare, here is the script that lightdm runs when you log in which has a similar part:

https://git.archlinux.org/svntogit/pack … es/lightdm

That "Xsession" script from the lightdm package does more, but I'm thinking that other stuff can't be important for your particular problem as I'm fine without it in my .xinitrc. I only do the sourcing of /etc/X11/xinit/xinitrc.d

When I look at the files I have in /etc/X11/xinit/xinitrc.d/, there's one named "50-systemd-user.sh" that might do something interesting.

Then in my i3 config, there's really nothing about Gnome's stuff that I start that has to do with your delay to launch programs. I only start the "accessibility bus" to make certain warning messages go away:

/usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately

EDIT: I have this script here to research things like that "at-spi-bus-launcher" thing:

#!/bin/bash
echo "### /etc autostart:"
sed -nr 's/^Exec=(.*)$/\1/p' /etc/xdg/autostart/!(*~)
echo
echo "### $HOME autostart:"
sed -nr 's/^Exec=(.*)$/\1/p' ~/.config/autostart/!(*~)

It prints all "Exec=..." lines in the XDG autostart files that would be run if you'd use a Desktop Environment. For me here, there's a lot of stuff there, but I never noticed any of it being important.

Last edited by Ropid (2017-05-04 23:21:50)

Offline

#8 2017-05-05 11:45:19

spacekookie
Member
Registered: 2017-04-30
Posts: 8

Re: [SOLVED] Gnome applications taking ages to launch

Hey smile Thanks for the replies. That fixed it. I guess I'll go through the xinit scripts and kinda have a look at what they do. But for now I just source them all.


Polar bears are left handed

Offline

Board footer

Powered by FluxBB