From 5c05348411925b0b672e4c0e8bdc031f23d07efd Mon Sep 17 00:00:00 2001
From: Aminda Suomalainen <suomalainen@aminda.eu>
Date: Mon, 9 Jun 2025 15:04:30 +0300
Subject: [PATCH] flatpak-workarounds.bash: allow Calibre access to /run/media

---
 bash/flatpak-workarounds.bash | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bash/flatpak-workarounds.bash b/bash/flatpak-workarounds.bash
index b9ed366..360f469 100755
--- a/bash/flatpak-workarounds.bash
+++ b/bash/flatpak-workarounds.bash
@@ -220,6 +220,7 @@ flatpak override org.qbittorrent.qBittorrent --filesystem=xdg-download $@
 flatpak override com.calibre_ebook.calibre --nofilesystem=host $@
 flatpak override com.calibre_ebook.calibre --nodevice=all $@
 flatpak override com.calibre_ebook.calibre --device=dri $@
+flatpak override com.calibre_ebook.calibre --filesystem=/run/media $@
 # FanFicFare Browser Cache. TODO: Firefox flatpak and other browsers
 flatpak override com.calibre_ebook.calibre --filesystem=~/.cache/mozilla/firefox/ $@
 flatpak override com.calibre_ebook.calibre --filesystem=~/Calibre\ Library:create $@