You are not logged in.

#1 2023-05-08 02:39:08

harpium
Member
Registered: 2021-12-23
Posts: 9

[SOLVED] Some programs taking a long time to launch

With a recent update, programs are now taking a long time to launch. I had this issue a while ago, which was caused by a badly configured .xinitrc, but since then, I've fixed it

Here is my .xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

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

# set QT theme to be qt5ct's which is based on kvantum
export QT_QPA_PLATFORMTHEME=qt5ct

exec bspwm

Here are the errors I see:

May 07 19:27:44 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Failed to activate service 'org.freedesktop.portal.Desktop': timed out (servic>
May 07 19:27:44 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Failed to activate service 'org.freedesktop.impl.portal.desktop.gnome': timed >
May 07 19:29:56 eric-pc dbus-daemon[572]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.se>
May 07 19:29:56 eric-pc dbus-daemon[572]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freed>
May 07 19:29:56 eric-pc sudo[10378]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 07 19:29:59 eric-pc sudo[10378]:     eric : TTY=pts/1 ; PWD=/home/eric ; USER=root ; COMMAND=/usr/bin/pacman -S -y --config /etc/pacman.conf --
May 07 19:29:59 eric-pc sudo[10378]: pam_unix(sudo:session): session opened for user root(uid=0) by eric(uid=1000)
May 07 19:29:59 eric-pc sudo[10378]: pam_unix(sudo:session): session closed for user root
May 07 19:30:11 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' >
May 07 19:30:11 eric-pc systemd[943]: Starting Tracker metadata extractor...
May 07 19:30:11 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract'
May 07 19:30:11 eric-pc systemd[943]: Started Tracker metadata extractor.
May 07 19:30:20 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xd>
May 07 19:30:20 eric-pc systemd[943]: Starting Portal service...
May 07 19:30:20 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.gnom>
May 07 19:30:20 eric-pc systemd[943]: Current graphical user session is inactive.
May 07 19:30:20 eric-pc systemd[943]: Dependency failed for Portal service (GNOME implementation).
May 07 19:30:20 eric-pc systemd[943]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
May 07 19:30:45 eric-pc rtkit-daemon[1100]: Supervising 8 threads of 5 processes of 1 users.
May 07 19:30:45 eric-pc rtkit-daemon[1100]: Supervising 8 threads of 5 processes of 1 users.
May 07 19:30:45 eric-pc rtkit-daemon[1100]: Supervising 8 threads of 5 processes of 1 users.
May 07 19:31:10 eric-pc xdg-desktop-por[10740]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.d>
May 07 19:31:15 eric-pc dbus-daemon[572]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.host>
May 07 19:31:15 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Activating service name='org.gnome.DiskUtility' requested by ':1.146' (uid=100>
May 07 19:31:15 eric-pc dbus-daemon[958]: [session uid=1000 pid=958] Successfully activated service 'org.gnome.DiskUtility'
May 07 19:31:15 eric-pc systemd[1]: Starting Hostname Service...
May 07 19:31:15 eric-pc dbus-daemon[572]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 07 19:31:15 eric-pc systemd[1]: Started Hostname Service.
May 07 19:31:29 eric-pc systemd[1]: Starting Cleanup of Temporary Directories...
May 07 19:31:30 eric-pc systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully.
May 07 19:31:30 eric-pc systemd[1]: Finished Cleanup of Temporary Directories.
May 07 19:31:30 eric-pc systemd[1]: run-credentials-systemd\x2dtmpfiles\x2dclean.service.mount: Deactivated successfully.
May 07 19:31:35 eric-pc xdg-desktop-por[10740]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.port>
May 07 19:31:35 eric-pc xdg-desktop-por[10740]: No skeleton to export
May 07 19:31:50 eric-pc systemd[943]: xdg-desktop-portal.service: start operation timed out. Terminating.
May 07 19:31:50 eric-pc systemd[943]: xdg-desktop-portal.service: Failed with result 'timeout'.
May 07 19:31:50 eric-pc systemd[943]: Failed to start Portal service.

Last edited by harpium (2023-05-08 04:03:01)

Offline

#2 2023-05-08 03:48:14

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: [SOLVED] Some programs taking a long time to launch

what programs are slow to launch ? start them from a terminal and see if there is any usefull output.
those errors are for gnome services that dbus is trying to start but failing due to gnome not running, no idea if that would cause your problem tho.
if you dont use gnome anymore then just remove it and all those dependencies.
the pam error for systemd.homed can be fixed by removing or commenting out the lines in "/etc/pam.d/system-auth" that reference "pam_systemd_home.so"

Offline

#3 2023-05-08 04:02:41

harpium
Member
Registered: 2021-12-23
Posts: 9

Re: [SOLVED] Some programs taking a long time to launch

Ok it's working now. I deleted xdg-desktop-portal-gnome, which may have once been a dependency for some of the GNOME apps I use. It also might've been left over from when I used GNOME. Not sure why this was causing issues all of a sudden though. Thank you!

Offline

#4 2023-05-08 05:11:54

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

Re: [SOLVED] Some programs taking a long time to launch

Not sure why this was causing issues all of a sudden though.

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

Online

Board footer

Powered by FluxBB