summaryrefslogtreecommitdiff
path: root/config/mpv/scripts/subs2srs/howto/flatpak.md
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-04-05 03:00:29 +0200
committernavewindre <boneyaard@gmail.com>2025-04-05 03:00:29 +0200
commitd6c4365b8de32b621ac46074a9b69908b95686c0 (patch)
tree495cb5b1aa7e68ab6ec07fa5fb09904a8c7e47e7 /config/mpv/scripts/subs2srs/howto/flatpak.md
parentb24463f3d045783b8f4e72926054d53b908e150f (diff)
a
Diffstat (limited to 'config/mpv/scripts/subs2srs/howto/flatpak.md')
-rw-r--r--config/mpv/scripts/subs2srs/howto/flatpak.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/mpv/scripts/subs2srs/howto/flatpak.md b/config/mpv/scripts/subs2srs/howto/flatpak.md
new file mode 100644
index 0000000..46a5787
--- /dev/null
+++ b/config/mpv/scripts/subs2srs/howto/flatpak.md
@@ -0,0 +1,27 @@
+# Flatpak notes
+
+We think it's best to never use Flatpak.
+Specifically, try not to use Flatpak to install `mpv` and `anki`.
+Install packages from the official repositories of your distro or from the AUR.
+
+Read the following notes if you still decide to use Flatpak.
+
+Make these changes in Flatseal:
+
+* Enable "Filesystem > All system files"
+ so it could see `wl-copy`.
+ Unfortunately, there's no option to provide only a specific system file.
+* Add `~/.var/app/net.ankiweb.Anki` to "Filesystem > Other Files"
+ so mpvacious could add encoded snapshots and audio to Anki.
+* Add `PATH=/home/USERNAME/.local/bin:/home/USERNAME/bin:/app/bin:/usr/bin:/run/host/usr/bin` to "Environment > Variables".
+ There's no option to add a path to `PATH` in Flatseal,
+ so I opened container,
+ saved it's PATH and added `/run/host/usr/bin`
+ so mpvacuous could access `wl-copy`.
+* Enable "Shared > Network".
+ It's enabled by default, but anyway.
+
+The mpv config root is `~/.var/app/io.mpv.Mpv/config/mpv`
+
+* `~/.var/app/io.mpv.Mpv/config/mpv/scripts`
+* `~/.var/app/io.mpv.Mpv/config/mpv/script-opts`