From 182d1dcae89ed77391daf9807ff04a70c141d5fb Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 18 Mar 2022 13:41:42 +0200 Subject: [PATCH] merge flatpak-override-themes.bash into flatpak-workarounds.bash I cannot find an issue for those, I think it's by design and the internet is full of that solution, except commonly rw instead of ro --- bash/flatpak-override-themes.bash | 14 +------------- bash/flatpak-workarounds.bash | 7 ++++++- 2 files changed, 7 insertions(+), 14 deletions(-) mode change 100755 => 120000 bash/flatpak-override-themes.bash diff --git a/bash/flatpak-override-themes.bash b/bash/flatpak-override-themes.bash deleted file mode 100755 index ce27830..0000000 --- a/bash/flatpak-override-themes.bash +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Show commands being executed -set -x - -# Results in /var/lib/flatpak/overrides/global -flatpak override --filesystem=/usr/share/themes:ro --filesystem=~/.themes:ro -flatpak override --filesystem=/usr/share/icons:ro --filesystem=~/.icons:ro -flatpak override --filesystem=/usr/share/cursors:ro --filesystem=~/.cursors:ro -flatpak override --show - -# Hide commands being executed again -set +x diff --git a/bash/flatpak-override-themes.bash b/bash/flatpak-override-themes.bash new file mode 120000 index 0000000..0d16c21 --- /dev/null +++ b/bash/flatpak-override-themes.bash @@ -0,0 +1 @@ +flatpak-workarounds.bash \ No newline at end of file diff --git a/bash/flatpak-workarounds.bash b/bash/flatpak-workarounds.bash index 7ab1a03..ec2ad3e 100755 --- a/bash/flatpak-workarounds.bash +++ b/bash/flatpak-workarounds.bash @@ -4,11 +4,16 @@ set -x # Workarounds for common flatpak app issues + +# Allowing system themes in flatpaks +flatpak override --filesystem=/usr/share/themes:ro --filesystem=~/.themes:ro +flatpak override --filesystem=/usr/share/icons:ro --filesystem=~/.icons:ro +flatpak override --filesystem=/usr/share/cursors:ro --filesystem=~/.cursors:ro + # 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 - # https://github.com/flathub/org.briarproject.Briar/issues/5 flatpak override org.briarproject.Briar --filesystem=~/.briar:create flatpak override org.briarproject.Briar --filesystem=~/.java/.userPrefs/org/briarproject/briar:create