mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-20 01:59:24 +01:00
34 lines
1.4 KiB
Bash
Executable File
34 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Show commands being executed
|
|
set -x
|
|
|
|
# Workarounds for common flatpak app issues
|
|
|
|
# Allowing system themes in flatpaks
|
|
flatpak override --filesystem=/usr/local/share/themes:ro --filesystem=/usr/share/themes:ro --filesystem=~/.themes:ro
|
|
flatpak override --filesystem=/usr/local/share/icons:ro --filesystem=/usr/share/icons:ro --filesystem=~/.icons:ro
|
|
flatpak override --filesystem=/usr/local/share/cursors:ro --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
|
|
|
|
# This is an ugly hack so I don't have to maintain the config.json separately
|
|
# in every profile and can just symlink it
|
|
flatpak override im.riot.Riot --filesystem=~/src/gitea.blesmrt.net/Mikaela/gist/matrix/Element:ro
|
|
|
|
# Just for verbosity. The results can be seen in /var/lib/flatpak/overrides/global …
|
|
flatpak override --show
|
|
# …and /var/lib/flatpak/overrides/org.briarproject.Briar
|
|
flatpak override --show org.briarproject.Briar
|
|
# do I need to list those?
|
|
flatpak override --show im.riot.Riot
|
|
|
|
# Hide commands being executed again
|
|
set +x
|