Compare commits

..

11 Commits

4 changed files with 47 additions and 15 deletions

View File

@ -1,13 +0,0 @@
#!/usr/bin/env bash
# Show commands being executed
set -x
# resutls 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

View File

@ -0,0 +1 @@
flatpak-workarounds.bash

27
bash/flatpak-workarounds.bash Executable file
View File

@ -0,0 +1,27 @@
#!/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
# 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
# Hide commands being executed again
set +x

View File

@ -5,6 +5,8 @@
set -x
# proxy authentication is not supported
# https://github.com/vector-im/element-web/issues/3320
/usr/bin/element --proxy-server=socks5://127.0.0.1:9050 $@
#flatpak run im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 $@
#/usr/bin/element --proxy-server=socks5://127.0.0.1:9050 $@
# Flatpak is preferred for Element not having official Fedora repositories
# and at the time of writing being unmaintained in upstream suggested repo.
flatpak run im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 $@
set +x

15
python/pin.py Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python
import sys
import secrets
try:
wantedCount = int(sys.argv[1])
except IndexError as noarg:
print("Enter a digit as an argument!")
try:
for i in range(int(wantedCount)):
print(secrets.randbelow(10),end="")
except NameError as noWantedCount:
print()
print()