-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
xdg-desktop-portal Will Not Run, Causing all (even non-Flatpak) dbus GTK Apps to Take Forever to Open on Plasma #570
Comments
This is exactly what i'm facing. |
just rebooted, issued the following: |
Same here. I just did the same, ran the |
This looks like an xdg-desktop-portal bug rather than a flatpak bug. |
xdg-desktop-portal is software developed by flatpak. Though I guess this could be moved to the xdg-desktop-portal repository, if anyone that has privileges here wants to move it. Obviously I can't move it myself. But yeah, if someone moves it to https://github.com/flatpak/xdg-desktop-portal/issues, that'd be fine. |
I believe the issue is stale |
This could be the issue indeed, seems to work right now. |
Yeah weirdly enough I found this out by accident as well. Like two weeks ago I switched from PulseAudio to Pipewire but that required me replacing the config file with the .pacnew one. After that I hadn't had any issues, but my GPU died like two days later, and I'm currently awaiting the arrival of my RMA replacement from EVGA, so I haven't had access to my desktop (which is where I was encountering the issue). But I got the emails from this thread and figured I'd pop in to say that yeah I think that was the issue. I'll go ahead and close. |
So I think that the problem isn't solved yet. Recently the pipewire package on Arch Linux changed and the "factory config files were moved from
Or
For me, I uninstalled Then after all that I think the issue should be reopened. |
I can't reproduce on plasma. I'm not using i3 right now (but I do have it installed), I'm using plasma, but even though my config files were also moved to |
I finally debugged why it was not starting. For me it was also stuck in that line:
I noticed the pipewire service did start but it warned it wasn't loading any modules. It would say something like:
So in a nutshell this seems to be the problem: I needed to load the portal module, however the flatpak/xdg-desktop-portal-gtk#107 (comment) did not work for me because the .pacnew file still was using the old format. I can tell by the first line:
Solution My version is 0.3.30 which needs the new format (reference). In my Arch installation (flatpak package) it's running as a user service so I created a file in pipewire.conf
For Arch you'll also have to install EDIT: In any case I still need to run |
Just for the record, I faced a similar situation with Debian Sid (running environment from |
I ended up having this problem or something very similar. I could not launch any Flatpak apps using the GNOME runtime (although strangely the FreeDesktop runtime seemed fine, but that needs confirmation). Note there was no 30 second delay, a few hours passed and those Flatpaks did not open. I was debugging a unrelated issue where I was entering If it it's helpful I can try to make exact reproducer steps, admittely this might be hard since this seems to need repeating something an unknown amount of times... It seems the source/cause was lots of requests/D-bus calls to xdg-desktop-portal. I tried to restart a few processes, but the one that actually fixed the issue was killing xdg-desktop-portal. Upon killing it all the apps I'd be trying to open opened. Note the app in particular was a PipeWire native app: EasyEffects. I have no real idea of whether PipeWire/WirePlumber was involved or at fault. |
Since last week, I've been experiencing recurring issues with my Arch i3 WM setup. I've noticed a significant delay when launching my To troubleshoot the problem, I attempted to open the Additionally, I discovered that even a file manager app I was developing using tauri/nextJs was affected, exhibiting the same delayed launch time. After removing |
If you are still seeing symptoms similar to this, instead of replying to a closed issue reported by someone else, please open a new issue with details of your system, and what appears in the system log (for example systemd Journal or Something like "it takes a long time" is not enough information to isolate a root cause or fix a bug, and it is entirely possible that the root cause for slowness on your system is not the same as the root cause for slowness on other systems, so information provided by others is not necessarily going to help to isolate why this is happening for you. If we mix up more than one root cause on the same issue report, it becomes confusing and time-consuming to solve. The output from running |
Linux distribution and version
Arch Linux
Flatpak version
1.10.1
Description of the problem
Starting maybe two weeks ago, I've had to remove all flatpaks and even the flatpak package itself from my system, as it depends on
xdg-desktop-portal
and won't acceptxdg-desktop-portal-gtk
or-kde
as replacements/provides. Well, it's causing non-flatpak GTK apps like virt-manager, Nautilus, and Nemo to take 30 seconds to open on a high-end machine with all-NVME storage and 32GB of RAM. QT and electron apps open instantly.Weirdly, when I log into Budgie or i3, apps start instantly. I've traced the problem to
xdg-desktop-portal
. The systemd service fails to start with no error message, just saying that it timed out:Running it from the terminal also doesn't work, it just hangs there and never completes.
I'm fully aware of the former fix that could be achieved by running:
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
. That does a whole lot of absolutely nothing in this case. I've tried it a dozen times (or more).The only thing that's stopped the issue, and stopped it instantly, is removing flatpak and xdg-desktop-portal from my system.
Steps to reproduce
Be on Arch Linux running KDE Plasma.
Install flatpak and by extension xdg-desktop-portal
Reboot
Try to run nautilus, virt-manager, or nemo. They will take way longer than they have any business taking (30-45 seconds on my machine with an 8-core 16-thread Zen 3 CPU, 32GB of RAM and all high-speed flash storage).
I've gone ahead and gotten the output from
/usr/lib/xdg-desktop-portal --replace --verbose
:And it's just hanging there, and apps are still taking forever to open.
The text was updated successfully, but these errors were encountered: