Some applications on Ubuntu 19.10 very slow to start
After having the same problem and doing strace + a lot of reasearch I found out that this fixes the issue for good (filezilla, keepassX etc. all launch instantly now):
sudo apt-get install appmenu-gtk2-module
Then reboot.
I can confirm the issue. For some application the launch is heavy delayed, other applications are starting pretty fast. After the launch every application is running normal without any further delays.
I am also able to confirm that I dont have any issues with starting applications if I'm using dbus-launch --exit-with-session vlc
. Also running the application as root removes the delay.
strace
is stopping at that point with all delayed applications:
poll([{fd=14, events=POLLIN}], 1, 25000) = 1 ([{fd=14, revents=POLLIN}])
read(14, "\1\0\0\0\0\0\0\0", 16) = 8
poll([{fd=14, events=POLLIN}], 1, 25000
I'm happy for any hint!
Edit: If somebody is looking for a temporary solution for budgie:
Install menulibre
Open Menu Editor (menulibre) and search for the application which is delayed in startup
Add
dbus-launch --exit-with-session APPLICATION
to the launching commandUnpin it from Icon Task list
Open app through menu and pin it again
Now the application will start with the dbus-launch
command from the start menu and taskbar.
Cannot confirm that installing appmenu-gtk2-module solves the problem. Also the "dbus-launch --exit-with-session" only provides a partial solution. For example VLC is facing the same startup issues. Starting it as "dbus-launch --exit-with-session vlc" avoids the described startup delay. However, integration into top panel and raven is lost in Budgie desktop.
Hence the question what exactly causes this problem and how to really solve it is still open.
Edit: I would like to clarify, what I consider being not OK with VLC when executed with dbus-launch. I attached four screenshots - two being suffixed with OK which show the integration into Budgie when being executed without dbus-launch. The second set - suffixed with NOK shows it being executed with dbus-launch. The difference is particularly noticeable in the vlcRaven screenshots. Furthermore the behavior when clicking the top panel icon is different. With dbus-launch left-clicking the icon reveals the shown menu, while the same hides/shows the application. The menu is opened upon right-clicking the icon. I do not consider the different behavior as showstopper for me though it might provide additional hints what's actually causing the issue.
VLC Raven panel NOK VLC Raven panel OK Top panel NOK Top panel OK