You are not logged in.

#1 2021-06-23 12:29:29

dezire
Member
Registered: 2020-09-30
Posts: 45

[SOLVED] File manager takes a long time to run

I am using Qtile installed from the official pacman repo as well as thunar and nautilus.
The first time after boot launching any file manager takes a long time to run but after then it is quick as normal.

Last edited by dezire (2021-06-23 16:30:39)

Offline

#2 2021-06-23 12:33:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: [SOLVED] File manager takes a long time to run

How are you starting qtile? If via startx and your .xinitrc doesn't follow the correct template then you will not have an active dbus session which is what all of these rely on: https://wiki.archlinux.org/title/Xinit#xinitrc

Terminal output from such an attempted first start?

Offline

#3 2021-06-23 16:02:48

dezire
Member
Registered: 2020-09-30
Posts: 45

Re: [SOLVED] File manager takes a long time to run

** (org.gnome.Nautilus:1147): WARNING **: 21:30:28.324: Unable to get contents of the bookmarks file: Error opening file /home/dezire/.gtk-bookmarks: No such file or directory

this is the first line and yes I am using Xinit

Offline

#4 2021-06-23 16:11:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: [SOLVED] File manager takes a long time to run

That's unlikely to be the issue how does your .xinitrc look like?

Offline

#5 2021-06-23 16:14:13

Mr Victory
Member
Registered: 2021-06-10
Posts: 40

Re: [SOLVED] File manager takes a long time to run

dezire wrote:

The first time after boot launching any file manager takes a long time to run but after then it is quick as normal.

Sounds like a disk I/O issue to me. First launch is read from disk and rest from RAM cache. Do you use a rotating drive or a non-rotating one? Are other heavyweight programs (Firefox, Chromium...) also slow?

Offline

#6 2021-06-23 16:27:53

dezire
Member
Registered: 2020-09-30
Posts: 45

Re: [SOLVED] File manager takes a long time to run

Ok so this worked for me

 exec dbus-launch --exit-with-session qtile

Offline

#7 2021-06-23 16:33:04

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

Re: [SOLVED] File manager takes a long time to run

That's not the correct way to do it. Post the contents of your ~/.xinitrc.


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

#8 2021-07-08 17:40:13

dezire
Member
Registered: 2020-09-30
Posts: 45

Re: [SOLVED] File manager takes a long time to run

#!/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

#nitrogen --restore &
xwinwrap -fs -fdt -ni -b -nf -un -ov -o 1.0 -debug -- mpv -wid WID --loop --no-audio ~/Downloads/wallpapers/mylivewallpapers.com-Shiki-Ryougi-Fate-Grand-Order.mp4 &
picom &
lxqt-policykit-agent &
exec dbus-launch --exit-with-session qtile

Offline

#9 2021-07-08 21:26:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,684

Re: [SOLVED] File manager takes a long time to run

Please replace "exec dbus-launch --exit-with-session qtile" w/ "exec qtile" and check the outputs of

echo $DBUS_SESSION_BUS_ADDRESS
loginctl session-status

Edit: also please quantify "long time" - the dbus timeout suspected through this thread (and supported by your würgaround) is 25 seconds. Does that fit the delay?

Last edited by seth (2021-07-08 21:28:32)

Online

Board footer

Powered by FluxBB