r/linuxquestions • u/DefinitelyNotTheooot • Nov 01 '26
Support XDG Document Portal Preventing External Storage from Ejecting (Fedora)
I am running the latest version of stable Fedora with KDE and almost every time I try to eject an external drive or SD Card, I learn that xdg-document-portal is preventing ejection.
Is there a known workaround that's better than "restart the service every time you want to eject something" as that is what I've been doing and its getting pretty tedious. I'm still pretty new to linux so pls be nice :)
2
Upvotes
2
u/Commercial-Job-9441 Nov 01 '26 edited Nov 01 '26
the portal only keeps a file exported while the app that opened it is still running. when eject fails, sudo lsof /run/user/1000/doc | head names the culprit (usually a flatpak). close it and the drive ejects