FLATPAK DOCUMENT-EX(1)

    .SH "NAME" flatpak-document-export - Export a file to a sandboxed application
    .SH "SYNOPSIS"
            .HP u
                flatpak document-export
                 [OPTION...]
                 FILE

    .SH "DESCRIPTION"

        .PP Creates a document id for a local file that can be exposed to sandboxed applications, allowing them access to files that they would not otherwise see. The exported files are exposed in a fuse filesystem at /run/user/$UID/doc/.
        .PP This command also lets you modify the per-application permissions of the documents, granting or revoking access to the file on a per-application basis.

    .SH "OPTIONS"

        .PP The following options are understood:

            .PP -h, --help

                    Show help options and exit.
                .RE
                .PP -u, --unique

                        Don't reuse an existing document id for the file. This makes it safe to later remove the document when you're finished with it.
                    .RE
                    .PP -t, --transient

                            The document will only exist for the length of the session. This is useful for temporary grants.
                        .RE
                        .PP -n, --noexist

                                Don't require the file to exist already.
                            .RE
                            .PP -a, --app=APPID

                                    Grant read access to the specified application. The --allow and --forbid options can be used to grant or remove additional privileges. This option can be used multiple times.
                                .RE
                                .PP -r, --allow-read

                                        Grant read access to the applications specified with --app. This defaults to TRUE.
                                    .RE
                                    .PP --forbid-read

                                            Revoke read access for the applications specified with --app.
                                        .RE
                                        .PP -w, --allow-write

                                                Grant write access to the applications specified with --app.
                                            .RE
                                            .PP --forbid-write

                                                    Revoke write access for the applications specified with --app.
                                                .RE
                                                .PP -d, --allow-delete

                                                        Grant the ability to remove the document from the document portal to the applications specified with --app.
                                                    .RE
                                                    .PP --forbid-delete

                                                            Revoke the ability to remove the document from the document portal from the applications specified with --app.
                                                        .RE
                                                        .PP -g, --allow-grant-permission

                                                                Grant the ability to grant further permissions to the applications specified with --app.
                                                            .RE
                                                            .PP --forbid-grant-permission

                                                                    Revoke the ability to grant further permissions for the applications specified with --app.
                                                                .RE
                                                                .PP -v, --verbose

                                                                        Print debug information during command processing.
                                                                    .RE
                                                                    .PP --ostree-verbose

                                                                            Print OSTree debug information during command processing.
                                                                        .RE

                                                                .SH "EXAMPLES"

                                                                    .PP $ flatpak document-export --app=org.gnome.gedit ~/test.txt

                                                                /run/user/1000/doc/e52f9c6a/test.txt

                                                                .SH "SEE ALSO"

                                                                    .PP flatpak(1), flatpak-document-unexport(1), flatpak-document-info(1), flatpak-documents(1)