From b03d347d1a61ee409930c3b17f960f4b3ef93e93 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 7 Jun 2025 10:17:10 +0300 Subject: [PATCH] flatpak-workarounds.bash: fix typo, qbittorrent, harden calibre --- bash/flatpak-workarounds.bash | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/bash/flatpak-workarounds.bash b/bash/flatpak-workarounds.bash index 56f42ae..567acb5 100755 --- a/bash/flatpak-workarounds.bash +++ b/bash/flatpak-workarounds.bash @@ -134,7 +134,7 @@ flatpak override com.valvesoftware.Steam --nosocket=fallback-x11 --socket=x11 $@ flatpak override com.heroicgameslauncher.hgl --nosocket=fallback-x11 --socket=x11 $@ # Steam flatpak workarounds a lot by non-UTF-8 C -flatpak override com.valvesoftware.Steam --env=LC_ALL=C.utf8 +flatpak override com.valvesoftware.Steam --env=LC_ALL=C.utf8 $@ # Yes, we are SteamDeck, of course #flatpak override com.valvesoftware.Steam --env=SteamDeck=1 $@ @@ -211,6 +211,23 @@ flatpak override com.vivaldi.Vivaldi --talk-name=org.kde.plasma.browser.integrat flatpak override com.google.Chrome --talk-name=org.kde.plasma.browser.integration $@ flatpak override com.google.ChromeDev --talk-name=org.kde.plasma.browser.integration $@ +# qBittorrent +flatpak override org.qbittorrent.qBittorrent --filesystem=~/bt:create $@ +ln -nsfv ~/bt ~/.bt +flatpak override org.qbittorrent.qBittorrent --filesystem=xdg-download $@ + +# Explicitly allow what Calibre needs +flatpak override com.calibre_ebook.calibre --nofilesystem=host $@ +flatpak override com.calibre_ebook.calibre --nodevice=all $@ +flatpak override com.calibre_ebook.calibre --device=dri $@ +# 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 $@ +flatpak override com.calibre_ebook.calibre --filesystem=~/bt $@ +flatpak override com.calibre_ebook.calibre --filesystem=~/xdg-download $@ +# Simplicity and so it won't attempt to create a directory in different locale +flatpak override com.calibre_ebook.calibre --env=LC_ALL=C.utf8 $@ + # Display the overrides if [ -d /var/lib/flatpak/overrides/ ]; then tail -n +1 /var/lib/flatpak/overrides/*