Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: jmjl on 04 July 2025, 17:42:17

Title: xdg-desktop-portal breaks hibernation
Post by: jmjl on 04 July 2025, 17:42:17
I'm using flatpak to use firefox, and when i do, it mounts my home directory inside a subdirectory of $XDG_CACHE_HOME, and then if i run something that reads the disk recursively it breaks xdg-desktop-portal.

My environment is a artix linux setup using sway, having the xdg-desktop-portal and xdg-desktop-portal-wlr installed, and having ran firefox from flatpak, and then running `find $XDG_CACHE_HOME/doc` and waiting a few minutes, then i dumped the dmesg output.

Due to the fact i have a lot of log-lines, i've uploaded them somewhere so i can post this. https://sharey.org/files/HlQQfv.txt

after that, i keep seeing the first lines about the task being blocked for more and more time.

i've tried doing `kill -9` with the pid from the process, and whilst it removes it from the ps output sometimes, but it still fails to hibernate, but it gives more Call Traces, so i've put them below:

https://sharey.org/files/vGwDGC.txt

After a while i get a warning that tells me i won't see more hung task reports, but it still won't let me hibernate.

I hope this is the right place to report the issue.
Title: Re: xdg-desktop-portal breaks hibernation
Post by: nous on 05 July 2025, 16:02:13
What if you set $XDG_CACHE_HOME to something outside your $HOME, like /tmp or /dev/shm to avoid recursion?
Title: Re: xdg-desktop-portal breaks hibernation
Post by: jmjl on 06 July 2025, 00:24:17
What if you set $XDG_CACHE_HOME to something outside your $HOME, like /tmp or /dev/shm to avoid recursion?

It'd half-work but still would cause recursion when I scan the entire disk, which yes I do.

As a half-assed solution, i manually launch flatpak app, and then bind mount an empty folder.
Title: Re: xdg-desktop-portal breaks hibernation
Post by: nous on 07 July 2025, 14:53:20
I don't use flatpaks, have you tested if this happens in other distros too?