tilix
tilix copied to clipboard
Slow start if only process
OS: Linux Mint 20 I've noticed tilix takes ~5 seconds to start if there's no other tilix window open, is there a workaround/fix for that?
I have a similar problem which occurs after a reboot. I wonder if it is related The first launch takes a while, but if you close tilix and open it again, it starts just fine.
I think in my case it comes down to dbus not being ready yet, but I am unsure.
Could you test if this is the same behavior for you?
I've since switched to arch, where the problem doesn't seem to appear, so most likely it has to do with some package being outdated or different - which one - I don't know.
Okay, thanks! Unfortunately not my issue then. I am on an Arch-ish (Manjaro) and it's a recent problem. :shrug:
I'm experiencing exactly the same issue and seemingly only started recently. My other computer setup has exactly the same Tilix version, VTE version and GTK version and is not suffering from the same. Not sure if it is recent kernel update.
If I run strace on tilix it will stuck after these lines:
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 13 write(13, "\1\0\0\0\0\0\0\0", 8) = 8 write(12, "\1\0\0\0\0\0\0\0", 8) = 8 futex(0x558877a74af0, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x558877a7ce50, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x558877a41198, FUTEX_WAKE_PRIVATE, 1) = 1 poll([{fd=13, events=POLLIN}], 1, 25000) = 1 ([{fd=13, revents=POLLIN}]) read(13, "\1\0\0\0\0\0\0\0", 16) = 8 poll([{fd=13, events=POLLIN}], 1, 25000
It seems to be exactly this problem: https://bbs.archlinux.org/viewtopic.php?id=262897
This is to confirm after replacing xdg-desktop-portal-gtk with xdg-desktop-portal-kde the problem is solved for me.
I upgraded to xdg-desktop-portal-gtk
from version 1.10.0-3 to version 1.12.0-1 yesterday and after that, startup time seems fine.
I checked the release notes: https://github.com/flatpak/xdg-desktop-portal-gtk/releases/tag/1.12.0 and they say
Enable settings and appchooser portals by default
There seems to be an issue with "Slow launch of GTK3 apps with dbus-run-session" (https://github.com/flatpak/xdg-desktop-portal-gtk/issues/332) which is mentioned in a recently merged PR (https://github.com/flatpak/xdg-desktop-portal-gtk/pull/362). The PR is about something else but I wonder if it fixed this issue by accident.
I updated a bunch of packages though, so it might be something else that fixed it. And this is a total coincidence.
TL;DR: If you use xdg-desktop-portal-gtk
< 1.12.0, try updating first.