FLATPAK-DOCUMENT-EXPORT(1)
π flatpak-document-export β bestie edition
okay so this is the manual page for flatpak-document-export from the flatpak command family β she lives in section 1 of the man pages, and honestly? she's kind of a baddie. let's get into it β¨
π NAME π
flatpak-document-export β export a file to a sandboxed application π«Ά
β¨ SYNOPSIS β¨
flatpak document-export [OPTION...] FILE
one file, a whole pile of options if you want them. that's the whole vibe. π
πΈ DESCRIPTION πΈ
So what she does is: she creates a document id for a local file, and that id can be exposed to sandboxed applications. Translation? It lets those apps see files they would NOT otherwise see. no cap. the exported files get exposed in a fuse filesystem at:
/run/user/$UID/doc/
π iconic behavior honestly.
And she's not just a one-trick pony β this command also lets you modify the per-application permissions of the documents. so you can grant or revoke access to the file, on a per-application basis. like a little permission bouncer at the door. πͺβ¨
π OPTIONS π
The following options are understood:
-h,--helpβ shows you the help options and dips. that's it, that's the whole job. π-u,--uniqueβ don't reuse an existing document id for the file. this is the one you want if you're planning to remove the document later once you're done with it, because it's safe to do that. π«Ά-t,--transientβ the document will only exist for the length of the session. perfect for temporary grants, like a lil pop-up shop but for permissions. π¦-n,--noexistβ don't require the file to exist already. she's flexible like that. π-a,--app=APPIDβ grant read access to the specified application. the--allowand--forbidoptions can be used to grant or remove additional privileges. and yes bestie, this option can be used multiple times β stack her up. π₯-r,--allow-readβ grant read access to the applications specified with--app. this defaults to TRUE. β--forbid-readβ revoke read access for the applications specified with--app. bye bye read privileges π-w,--allow-writeβ grant write access to the applications specified with--app. βοΈ--forbid-writeβ revoke write access for the applications specified with--app. βοΈπ«-d,--allow-deleteβ grant the ability to remove the document from the document portal to the applications specified with--app. ποΈβ¨--forbid-deleteβ revoke the ability to remove the document from the document portal from the applications specified with--app. no deleting for you ποΈπ«-g,--allow-grant-permissionβ grant the ability to grant further permissions to the applications specified with--app. permission to give permission, very meta, very main character. π--forbid-grant-permissionβ revoke the ability to grant further permissions for the applications specified with--app. π«-v,--verboseβ print debug information during command processing. the tea β--ostree-verboseβ print OSTree debug information during command processing. extra tea, specifically ostree-flavored π§
π EXAMPLES π
look at her go:
$ flatpak document-export --app=org.gnome.gedit ~/test.txt
and she gives you back:
/run/user/1000/doc/e52f9c6a/test.txt
ate. no crumbs. π
π SEE ALSO π
flatpak(1), flatpak-document-unexport(1), flatpak-document-info(1), flatpak-documents(1)
and that's the whole page bestie, go export some documents, you're literally built for this π
this one came from the flatpak source, section 1 of the manuals, dated like all the other flatpak pages β mwah, love her, bye ππ¦β¨
π¦ where this page comes from
- debian trixie: flatpak 1.16.6-1~deb13u3
- fedora 44: flatpak 1.18.4-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: flatpak 1.18.4-1.fc44 Β· LGPL-2.1-or-later
- nixpkgs unstable: flatpak 1.18.4
- ubuntu stonking: flatpak 1.18.4-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms