Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emagra opened this issue Sep 5, 2024 · 10 comments
Open

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

emagra opened this issue Sep 5, 2024 · 10 comments

Comments

@emagra
Copy link

emagra commented Sep 5, 2024

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
Copy link
Collaborator

3v1n0 commented Sep 5, 2024

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

@vanvugt
Copy link
Collaborator

vanvugt commented Sep 6, 2024

See also #2266

@emagra
Copy link
Author

emagra commented Sep 6, 2024

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

both

@karuboniru
Copy link

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
Copy link
Collaborator

3v1n0 commented Sep 10, 2024

@karuboniru
Copy link

@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
Copy link
Collaborator

3v1n0 commented Sep 10, 2024

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

Closing then, thanks for testing!

@3v1n0 3v1n0 closed this as completed Sep 10, 2024
@aleasto
Copy link

aleasto commented Sep 10, 2024

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
Copy link
Author

emagra commented Sep 10, 2024

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
Copy link
Author

emagra commented Sep 10, 2024

Screencast.From.2024-09-10.17-45-24.mp4

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

@3v1n0 3v1n0 reopened this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants