You are not logged in.

#1 2023-07-28 22:28:44

Dominik
Member
Registered: 2021-12-21
Posts: 25

[SOLVED] Applications have 20s+ startup time - but sudo fast

Using i3 + Picom

I first noticed the issue with Firefox taking about 20-30s to launch. Once it's launched and I can quickly open new windows. Then I noticed it also happens on applications like pavucontrol.

I tried following some similar solutions found here - https://bbs.archlinux.org/viewtopic.php?id=234072 and here https://bbs.archlinux.org/viewtopic.php?id=224787 but no luck.
I've tried sourcing the /etc/X11/xinit/xinitrc.d/*.sh files, and also running the "dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY" in my .xinitrc.

If I run pavucontrol from the terminal it will take 20-30 seconds to launch. However if I run "sudo pavucontrol" it will launch instantly. Obviously not what I want to do, but it's strange the speed differences.
The only other solution I can see is to load everything preemptively with a preloader, but I feel like I shouldn't need to do that for something like pavucontrol.

Any help is much appreciated.

This is a brand new system, and hardware isn't really a problem. 128 GB RAM. Validated the NVMe drive's read/write speeds.

Last edited by Dominik (2023-07-29 00:16:13)

Offline

#2 2023-07-28 23:24:27

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: [SOLVED] Applications have 20s+ startup time - but sudo fast

If you have xdg-desktop-portal-gnome installed, try removing it / replace it with xdg-desktop-portal-gtk and see if the problem goes away. btw it is generally not a good idea to start "user" programs with sudo as any config etc files that are written will have the wrong permissions and you won't be able to open them normally

Last edited by skunktrader (2023-07-28 23:29:51)

Offline

#3 2023-07-29 00:15:45

Dominik
Member
Registered: 2021-12-21
Posts: 25

Re: [SOLVED] Applications have 20s+ startup time - but sudo fast

skunktrader wrote:

If you have xdg-desktop-portal-gnome installed, try removing it / replace it with xdg-desktop-portal-gtk and see if the problem goes away. btw it is generally not a good idea to start "user" programs with sudo as any config etc files that are written will have the wrong permissions and you won't be able to open them normally

This immediately fixed it! I actually had both installed. Removed the gnome one and everything is feeling snappy again. Thanks!

Offline

Board footer

Powered by FluxBB