Skip to content

Commit aa48247

Browse files
committed
Assert removable-media interface in the snap
This allows access to the files under `/media/*` and `/run/media/*`, as the connection is not automatic connect instructions is also added to the snap's description. Refer-to: Interfaces - doc - snapcraft.io <https://forum.snapcraft.io/t/interfaces/6154> Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
1 parent b5ff354 commit aa48247

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

snap/snapcraft.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ description: |
66
languages "out of the box". It can be trained to recognize other languages.
77
Tesseract supports various output formats: plain-text, hocr(html), pdf.
88
9+
If you want to access the files under /media/* or /run/media/* you'll have
10+
to connect the snap to the `core` snap's `removable-media` interface:
11+
12+
$ sudo snap connect tesseract:removable-media
13+
914
grade: stable # must be 'stable' to release into candidate/stable channels
1015
confinement: strict
1116

@@ -15,7 +20,9 @@ apps:
1520
env
1621
TESSDATA_PREFIX=$SNAP_USER_COMMON
1722
tesseract
18-
plugs: [home]
23+
plugs:
24+
- home
25+
- removable-media
1926

2027
parts:
2128
tesseract:

0 commit comments

Comments
 (0)