Make albert autostart at login with correct dpi settings
by Dropinthesea from LinuxQuestions.org on (#59CET)
I'm extremely new to linux and after learning some basics on regressions and terminal navigation in mint and ubuntu I jumped to arch. I'm using X1carbon gen 7, 4k screen, uefi install with grub, lightdm and xfce4.
When I first installed albert the application was tiny as I'm assuming now, it must be based on Qt5 so I added:
Code:Exec=/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=2 /usr/bin/albert %uto the: Code:/usr/share/applications/albert.desktopI was very happy that worked, but when I added: Code:albert & to my Code:.xprofile albert started at login but was tiny again. I'm assuming albert is getting started before the changes in Code:/usr/share/applications/albert.desktop are applied.
I searched the arch wiki and found a page where it mentions delaying autostart, it said to use this command: Code:sh -c "sleep 3 && command"but I'm not sure how to use it.
I've tried adding a program to autostart in the xfce session and startup gui settings but again it didn't work, I don't think I was adding the application properly.
So I know how to make albert open with the correct dpi settings but I can't get albert to autostart with those settings.
any help would be much appreciated,
many thanks in advance.
I got the answer from someone on the arch wiki and thought i'd post it to benefit others.
add: Code:export QT_AUTO_SCREEN_SCALE_FACTOR=0and
Code:export QT_SCALE_FACTOR=2and
Code:/usr/bin/albert &to Code:.xprofile


When I first installed albert the application was tiny as I'm assuming now, it must be based on Qt5 so I added:
Code:Exec=/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=2 /usr/bin/albert %uto the: Code:/usr/share/applications/albert.desktopI was very happy that worked, but when I added: Code:albert & to my Code:.xprofile albert started at login but was tiny again. I'm assuming albert is getting started before the changes in Code:/usr/share/applications/albert.desktop are applied.
I searched the arch wiki and found a page where it mentions delaying autostart, it said to use this command: Code:sh -c "sleep 3 && command"but I'm not sure how to use it.
I've tried adding a program to autostart in the xfce session and startup gui settings but again it didn't work, I don't think I was adding the application properly.
So I know how to make albert open with the correct dpi settings but I can't get albert to autostart with those settings.
any help would be much appreciated,
many thanks in advance.
I got the answer from someone on the arch wiki and thought i'd post it to benefit others.
add: Code:export QT_AUTO_SCREEN_SCALE_FACTOR=0and
Code:export QT_SCALE_FACTOR=2and
Code:/usr/bin/albert &to Code:.xprofile