micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.85k stars 462 forks source link

Slow start of flatpak application with Dash-to-dock enabled #2278

Open emagra opened 1 week ago

emagra commented 1 week ago

When I run the Flatpak version of Chromium and Edge (which I use for work, sob), they take several minutes to start. With Dash to Dock disabled, I have no issues. The slow startup occurs only with Chromium and Edge; other apps start without delay. Additionally, if I start them with the commands gtk-launch org.chromium.Chromium or flatpak run org.chromium.Chromium, there is no delay

OS: Debian GNU/Linux trixie/sid x86_64 Kernel: 6.10.6-amd64 DE: GNOME 46.4 WM: Mutter Dash-to-dock: V95

3v1n0 commented 1 week ago

The problem happens also when running the app from the overview or just from the dock?

vanvugt commented 1 week ago

See also #2266

emagra commented 1 week ago

The problem happens also when running the app from the overview or just from the dock?

both

karuboniru commented 1 week ago

I have the same iss, with dash-to-dock enabled in Fedora 41 with GNOME 47. After login, the starting of first application takes ~20+ seconds to appear its window. This includes both flatpak apps and non-flatpak apps. And when the first application started no further problem is present.

After checking the log, it seems that the issue is connected to the time comsumed to start xdg-desktop-portal-gnome.service and/or xdg-desktop-portal.service. (I don't know which one is the reason which is the consequence though) .

With dash to dock enabled, those 2 systemd user service would take ~20s to start compared ~1s in normal case. Hope this can help addressing the cause of the issue.

3v1n0 commented 6 days ago

It could be related to https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/176 ?

karuboniru commented 6 days ago

@3v1n0 Yes it is, tried to update to 47.rc1 and application start now gets normal. Don't know why dash-to-dock has anything to do with triggering the bug here but is is solved with the update.

3v1n0 commented 6 days ago

Well, the locations integration may play a role here, but I didn't go through all the details.

Closing then, thanks for testing!

aleasto commented 6 days ago

The bug triggers by starting Nautilus. For 25 seconds after starting nautilus all GTK apps are delayed. Presumably dash-to-dock is starting nautilus (via dbus activation)

emagra commented 6 days ago

It could be related to https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/176 ?

That's not the case.

The problem is present only for Flatpak apps in particular for web browsers, in my case Chromoium and Edge. All other deb apps run with no delay even after the login.

emagra commented 6 days ago

https://github.com/user-attachments/assets/9b0d0948-318c-47ce-9863-3f3f6cb9bcb7

That's my situation:

With Dash to Dock disable all good, deb apps and flatpak apps run instantaneously even after the login, so no https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/176

With Dash to Dock enable deb apps run instantaneously, flatpak apps (web browser only) run after 2 or more minute delay, other flatpak apps run instantaneously (in the video Remmina but with other apps I have no issues)

@3v1n0 Yes it is, tried to update to 47.rc1 and application start now gets normal. Don't know why dash-to-dock has anything to do with triggering the bug here but is is solved with the update.

For me the problem is still there with gnome-shell 47.rc

When I run the Flatpak version of Chromium and Edge (which I use for work, sob), they take several minutes to start. With Dash to Dock disabled, I have no issues. The slow startup occurs only with Chromium and Edge; other apps start without delay. Additionally, if I start them with the commands gtk-launch org.chromium.Chromium or flatpak run org.chromium.Chromium, there is no delay

OS: Debian GNU/Linux trixie/sid x86_64 Kernel: 6.10.6-amd64 DE: GNOME 46.4 WM: Mutter Dash-to-dock: V95

Forgot "gtk-launch org.chromium.Chromium" still true