After updating my system about two weeks ago, I noticed certain GTK programs such as Nautilus, file-roller, and the calculator along with others like Firefox and Thunderbird have been slow to start (for example, the calculator takes upwards of 25 seconds to start), and I can’t figure out why. I assume it’s an issue with a GTK component, but I don’t know where to begin to diagnose the problem.
Sounds like this might be a xdg-desktop-portal performance issue that many are hitting. See:
I have seen reports that xdg-desktop-portal-gnome is causing problems - do you have it installed?
I am using XFCE. I don’t have this problem on my laptop running i3. I just checked xdg-desktop-portal-gnome is installed.
3 Likes
That did the trick! Is there a bug tracker issue or forum post that goes over why this issue is happening? I’ve never had an issue like this before.
opened 10:12PM - 11 May 23 UTC
closed 12:53PM - 25 Sep 23 UTC
bug
### Checklist
- [X] I agree to follow the [Code of Conduct](https://github.com/… flatpak/flatpak/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/flatpak/flatpak/issues) for a bug that matches the one I want to file, without success.
- [X] If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
- [X] This issue is not a report of a security vulnerability (see [here](https://github.com/flatpak/flatpak/blob/main/SECURITY.md) if you need to report a security issue).
### Flatpak version
1.15.4
### What Linux distribution are you using?
Other (specify below)
### Linux distribution version
EndeavourOS
### What architecture are you using?
x86_64
### How to reproduce
```sh
$ yay -S flatpak
```
### Expected Behavior
Other apps runs as normal
### Actual Behavior
Just installing flatpak causes Nemo, Firefox and a bunch of other applications to start up really really slow
### Additional Information
I tracked this problem down to another package, a dependency of flatpak called `xdg-desktop-portal`
I found two other issues on this:
* https://github.com/flatpak/xdg-desktop-portal/issues/400
* https://github.com/flatpak/xdg-desktop-portal/issues/636
Though both are old, *closed* and this is still a **big** deal.
I love the idea of flatpak (and really dislike snapd), but when it kind of "breaks" my system (waiting 30+ seconds for Nemo / Firefox to start is a "broken" system).
I'm really sad that this is the case, cause I want to use flatpak and want it to succeed. But this is a total show-stopper.
Any news on this?
(if this is handled in another open issue, I'm sorry, I couldn't find it)
```sh
> neofetch --off
..
OS: EndeavourOS Linux x86_64
Host: B650 GAMING X AX
Kernel: 6.2.0.3.realtime1-4-rt
Uptime: 28 mins
Packages: 955 (pacman)
Shell: zsh 5.9
Resolution: 1920x1200, 1920x1200
DE: Cinnamon 5.6.8
WM: Mutter (Muffin)
WM Theme: Arc-Dark (Adwaita)
Theme: Adwaita-dark [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: terminator
CPU: AMD Ryzen 7 7700 (16) @ 3.800GHz
GPU: AMD ATI Radeon HD 4650
GPU: AMD ATI 10:00.0 Raphael
Memory: 2156MiB / 31238MiB
```
https://bugzilla.redhat.com/show_bug.cgi?id=2176759
Apparently, it can happen on both, Gnome
and KDE
, commonly when flatpak
is installed.
If one is in need of any xdg-desktop-portal (for varying reasons, see link) a current, recommended workaround is using xdg-desktop-portal-gtk
instead of the Gnome or KDE versions!
1 Like
pebcak
May 22, 2023, 12:44pm
5
If I am not mistaken, all the reported cases on the forum have been about non-GNOME DE:s.
That’s what it says in the Gitlab’s link posted as well.
No issues with slow launch of applications on my end with GNOME, flatpak and xdg-desktop-portal-gnome.
pebcak
May 22, 2023, 12:51pm
7
anon11595408:
Good for you.
That is not the relevant part of my post but this is:
Sorry if I don’t entertain an all-seeing-eye. It did happen to me on KDE and I was only trying to be helpful to the many…
1 Like
pebcak
May 22, 2023, 12:57pm
9
That’s surely very appreciated.
But this issue seems to hit non-GNOME DE:s as in your case in KDE. So your assertion that:
is only partially true. Just wanted to point that out.
Keep up the good work!
Au revoir!
1 Like
I stand corrected, as I’m not using Gnome currently at all!
It happened to me on Budgie, too…
2 Likes
system
Closed
May 24, 2023, 1:02pm
11
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.