From c336620bc8c33b652943d5ca2ea10ae4fa146be3 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 9 Oct 2023 16:30:35 +0300 Subject: [PATCH] flatpak-workarounds.bash: too much rw --- bash/flatpak-workarounds.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bash/flatpak-workarounds.bash b/bash/flatpak-workarounds.bash index c3faf7b..50d13a9 100755 --- a/bash/flatpak-workarounds.bash +++ b/bash/flatpak-workarounds.bash @@ -13,16 +13,19 @@ set -x # - curl configuration following # - text editor configuration # - user-specific fonts -flatpak override --filesystem=~/.gdbinit:ro --filesystem=~/gdb.txt --filesystem=~/.curlrc:ro --filesystem=~/.editorconfig:ro --filesystem=~/.local/share/fonts:ro $@ +flatpak override --filesystem=~/.gdbinit:ro --filesystem=~/gdb.txt:create --filesystem=~/.curlrc:ro --filesystem=~/.editorconfig:ro --filesystem=~/.local/share/fonts:ro $@ # Public git repositories I access or symlink much. -# TODO: scripts & text-editors (otherwise nvim and code and codium cannot edit them!) -flatpak override --filesystem=~/.shell-things:ro --filesystem=~/src/gitea.blesmrt.net/Mikaela/shell-things:ro --filesystem=~/src/gitea.blesmrt.net/Mikaela/gist:ro --filesystem=~/src/github.com/Mikaela/mikaela.github.io:ro $@ +# Must be rw for access by text editors, otherwise they are ro or I will repeat myself +flatpak override --filesystem=~/.shell-things:rw --filesystem=~/src/gitea.blesmrt.net/Mikaela/shell-things:rw --filesystem=~/src/gitea.blesmrt.net/Mikaela/gist:rw --filesystem=~/src/gitea.blesmrt.net/Mikaela/scripts:rw --filesystem=~/src/github.com/Mikaela/mikaela.github.io:rw $@ # Backticks and a lot of common characters in all Flatpaks # https://github.com/flatpak/flatpak/issues/2031 flatpak override --talk-name=org.fcitx.Fcitx --talk-name=org.freedesktop.portal.Fcitx $@ +# I don't have other nvim on SteamOS +flatpak override io.neovim.nvim --filesystem=host --filesystem=host-os --filesystem=host-etc $@ + # https://github.com/flathub/org.briarproject.Briar/issues/5 flatpak override org.briarproject.Briar --filesystem=~/.briar:create --filesystem=~/.java/.userPrefs/org/briarproject/briar:create $@