-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Files exported by --file-forwarding
not removed from xdg-document-portal after program exit
#4303
Comments
This might be a file descriptor leak in the xdg-desktop-portal version 1.8.1 definitely fixed a fd leak, for example. |
Do you mean flatpak is correctly requesting the removal of such forwarded files on app exit? |
I can only find the Line 3335 in 686af7d
But there's no
EDIT: Oh, okay, there's the 4th argument passed to
What does session mean here? The desktop session? If that's the case, that's still going to prevent unmounting external hard drives... 😞 |
I'm having the same issue with Clapper when I plug in an SD card and play some videos, close down Clapper and try and eject the SD card gnome tells me volume is busy and running Edit: |
I'm seeing this on openSUSE Leap 15.3 with Flatpak 1.12.5. In my case it is when downloading files in Firefox running in Flatpak. Are there any known workarounds? Possibly:
EDIT: If you are willing to risk it or are very sure that no more data is being written (seems reasonably safe for a finished Firefox download), then you can simply kill the |
This should be fixed when the portal with the fix for #689 get released. |
This should be fixed if you use xdg-desktop-portal 1.18.2. |
Correct, xdg-desktop-portal 1.18.2 should fix this. |
Linux distribution and version
openSUSE MicroOS (20210524)
Flatpak version
Flatpak 1.11.1
Description of the problem
The documentation for
--file-forwarding
notes that:flatpak/doc/flatpak-run.xml
Lines 627 to 638 in 686af7d
However, often times files exported this way are not removed even after the program started by
flatpak run
has exited. This is causingtarget is busy
when trying to unmount a partition on a USB external hard drive.Steps to reproduce
flatpak install io.github.celluloid_player.Celluloid
gio open ???.mkv
???.mkv
video file is still open byxdg-document-portal
, e.g. by runninglsof /dev/sda1
The text was updated successfully, but these errors were encountered: