Since I began compiling Qtractor with qt6 I noticed longer start times of Qtractor. Especially on an old Core i5 it takes now 6 seconds until Qtractor is usable. Strace showed that Qtractor (or qt6) scans a lot of dirs, not only in the home directory but also in /usr and /var. It even opens dot-files like .vimrc, makes 1176 stat-calls to /etc/localtime and searches e.g. 2105 times for each icon in many directories including /var/lib/snapd. Having network mounts or links to them in the home dir slows down the process even more.
Opening View -> Options -> Display -> Icons theme to select a directory for icons is affected, too.
Custom\IconsTheme is set but scanned after all other dirs are scanned.
Is it possible to avoid the scanning of other directories if Custom\IconsTheme is set?
re. Slow start because of extensive file scanning...
that, is, quite, strange... can't figure out what's causing that behavior, as I never seen such a trouble...
backup and try with a blank slate configuration file, and if it doesn't behave like so right from the start, try one step a time, changing options to your former preferences, one by one, and find what's causing trouble...
good luck :)
byee
$XDG_DATA_DIRS
It happened with a deleted Qtractor.conf, too. I did some research and found out that QT6 uses $XDG_DATA_DIRS as the default search path for icons. On my machine it was set to /usr/share/xubuntu:/usr/share/xfce4:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share
Setting it to $HOME/qtractor/themes where I have my icon set for Qtractor makes Qtractor start fast again.
EDIT: have to set it to /usr/share else CALF plugins will crash Qtractor when opening their GUI.
Add new comment