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

File kept busy by portal process #994

Closed
BillDietrich opened this issue Mar 27, 2023 · 3 comments
Closed

File kept busy by portal process #994

BillDietrich opened this issue Mar 27, 2023 · 3 comments

Comments

@BillDietrich
Copy link

When using Flatpak of an app, and portals, I use some file X, then I quit from the app, try to dismount the disk or USB stick or LUKS container that file X resides on, and get a "can't unmount because busy" error. I do something like:

lsof -c xdg | grep REG | grep -v -E '/usr|/var|/run|/SYSV|/memfd'

and find out that a portal process still has file X open. I have to kill the process to be able to unmount the drive.

Before you say this is an app bug, go file against the app, I've seen it in multiple apps and distros and DEs, which leads me to think perhaps the portal specification or guidance or API maybe is lacking in this area. Is there a way for an app to tell the portal process to let go of the file ? Is this advertised to app developers ? Today the UX of the overall system can be bad because of this issue. What can be done to improve it ? Thanks.

@rusty-snake
Copy link

Duplicated oft #689 and all its duplicates.

@smcv
Copy link
Collaborator

smcv commented Mar 28, 2023

Same issue as #689. If someone knows how xdg-document-portal (the FUSE filesystem that makes files available to sandboxed apps) can avoid holding fds open indefinitely, but still work correctly, then pull requests are welcome.

@smcv smcv closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2023
@BillDietrich
Copy link
Author

Maybe some portal API change is needed ? Something to say "no longer using file X" ?

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

3 participants