You are not logged in.

#1 2022-09-09 15:01:37

kaiserkueche
Member
Registered: 2021-09-14
Posts: 22

[SOLVED] Open file dialog freezes program or is very slow

Hello,

I have noticed a problem since a while: when I want to open the file dialog (e.g. with ctrl+o), the program either freezes entierly, or the dialog is really slow to show up, and when I click on the file to close it it takes again much time.
It seems to happen only with qt programs (as kid3, picard, kdenlive) and not on GTK ones (as lutris, font-manager, discord). I use thunar as graphical file explorer (most of the time I am on ranger in the terminal).
When I open the program via the terminal, there is no special message that shows up when opening the file dialog, but this message shows up at start:

kf.xmlgui: Shortcut for action  "open_directory" "O&pen Folder..." set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action  "reload" "Re&load" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

I noticed while trying that when I want to "browse file" from a game in lutris, it automatically opens kid3. Maybe my default xdg opener is not configured, but I don't really know yet how it works. I use i3wm so I don't have a full desktop manager.

Thanks in advance. If you want more detail about anything, don't hesitate to ask me, I don't really know what I should say since I'm not sure where the problem lies.

Last edited by kaiserkueche (2022-10-13 13:25:40)

Offline

#2 2022-09-09 15:45:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,846

Re: [SOLVED] Open file dialog freezes program or is very slow

This sounds like a dbus timeout candidate except that I'd expect GTK to be affected too. In any case, how are you starting i3? If with xinit/startx, make sure you heed the advice from https://wiki.archlinux.org/title/Xinit#xinitrc note the blue note boxes and the fact that you should be copying the example file and do your edits at the end.

Offline

#3 2022-09-09 20:09:36

seth
Member
Registered: 2012-09-03
Posts: 52,028

Re: [SOLVED] Open file dialog freezes program or is very slow

Also see https://bbs.archlinux.org/viewtopic.php … 6#p2055916 but before you go on a file deletion safari, check some strace whether such file is opened before the stall.

Offline

#4 2022-09-09 20:57:57

kaiserkueche
Member
Registered: 2021-09-14
Posts: 22

Re: [SOLVED] Open file dialog freezes program or is very slow

V1del wrote:

This sounds like a dbus timeout candidate except that I'd expect GTK to be affected too. In any case, how are you starting i3? If with xinit/startx, make sure you heed the advice from https://wiki.archlinux.org/title/Xinit#xinitrc note the blue note boxes and the fact that you should be copying the example file and do your edits at the end.

Yes I use startx and here is my ~/.xinitrc. I do have copied the example file in /etc/X11/xinit/xinirc  and have kept the last "if" block as the blue note says.

#!/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 default stuff
export EDITOR=vim
# set environment variables
export QT_QPA_PLATFORMTHEME=qt5ct
# keyboard
exec setxkbmap -option caps:escape &
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
exec i3

Offline

#5 2022-10-13 13:25:22

kaiserkueche
Member
Registered: 2021-09-14
Posts: 22

Re: [SOLVED] Open file dialog freezes program or is very slow

So I tried a few things of the other post https://bbs.archlinux.org/viewtopic.php … 6#p2055916 that @seth recommended me.

I have resolved the problem, the file dialog is instantely opening. I just had to delete the file ~/.config/QtProject.conf and the problem was solved. Thank you all for your help.

Offline

Board footer

Powered by FluxBB