1FLATPAK DOCUMENT-EX(1) flatpak document-export FLATPAK DOCUMENT-EX(1)
2
3
4
6 flatpak-document-export - Export a file to a sandboxed application
7
9 flatpak document-export [OPTION...] FILE
10
12 Creates a document id for a local file that can be exposed to sandboxed
13 applications, allowing them access to files that they would not
14 otherwise see. The exported files are exposed in a fuse filesystem at
15 /run/user/$UID/doc/.
16
17 This command also lets you modify the per-application permissions of
18 the documents, granting or revoking access to the file on a
19 per-application basis.
20
22 The following options are understood:
23
24 -h, --help
25 Show help options and exit.
26
27 -u, --unique
28 Don't reuse an existing document id for the file. This makes it
29 safe to later remove the document when you're finished with it.
30
31 -t, --transient
32 The document will only exist for the length of the session. This is
33 useful for temporary grants.
34
35 -n, --noexist
36 Don't require the file to exist already.
37
38 -a, --app=APPID
39 Grant read access to the specified application. The --allow and
40 --forbid options can be used to grant or remove additional
41 privileges. This option can be used multiple times.
42
43 -r, --allow-read
44 Grant read access to the applications specified with --app. This
45 defaults to TRUE.
46
47 --forbid-read
48 Revoke read access for the applications specified with --app.
49
50 -w, --allow-write
51 Grant write access to the applications specified with --app.
52
53 --forbid-write
54 Revoke write access for the applications specified with --app.
55
56 -d, --allow-delete
57 Grant the ability to remove the document from the document portal
58 to the applications specified with --app.
59
60 --forbid-delete
61 Revoke the ability to remove the document from the document portal
62 from the applications specified with --app.
63
64 -g, --allow-grant-permission
65 Grant the ability to grant further permissions to the applications
66 specified with --app.
67
68 --forbid-grant-permission
69 Revoke the ability to grant further permissions for the
70 applications specified with --app.
71
72 -v, --verbose
73 Print debug information during command processing.
74
75 --ostree-verbose
76 Print OSTree debug information during command processing.
77
79 $ flatpak document-export --app=org.gnome.GEdit ~/test.txt
80
81 /run/user/1000/doc/e52f9c6a/test.txt
82
84 flatpak(1), flatpak-document-unexport(1), flatpak-document-info(1),
85 flatpak-document-list(1)
86
87
88
89flatpak FLATPAK DOCUMENT-EX(1)