Compare commits

...

11 Commits

Author SHA1 Message Date
cbdb39e07d
python/pin.py: initial commit 2022-03-18 17:59:07 +02:00
5d41a732e1
bash/usr-local-bin/element: prefer flatpak 2022-03-18 15:51:33 +02:00
c3a72447c7
flatpak-workarounds.bash: note /usr/local for themes 2022-03-18 13:46:57 +02:00
7e00a22469
flatpak-workarounds.bash: note the file locations anyway 2022-03-18 13:45:33 +02:00
182d1dcae8
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
2022-03-18 13:41:42 +02:00
7799b8dd50
flatpak-workarounds.bash: global workaround for backticks/fcitx
mentioned in c8bdace60d37b05307c43704785cb080a0fc6aad
2022-03-18 12:58:13 +02:00
e05596ce52
flatpak-workarounds.bash: also show overrides for affected flatpaks 2022-03-18 12:44:31 +02:00
2232c9108f
flatpak-workarounds.bash: I meant this as global… 2022-03-18 12:43:29 +02:00
d71bcfa12b
flatpak-workarounds.bash: listing overrides in the end looks like a good practice 2022-03-18 12:41:35 +02:00
bebbce9d65
flatpak-override-themes.bash: fix typo in comment 2022-03-18 12:40:33 +02:00
c8bdace60d
bash: add initial flatpak-workarounds.bash
Right now just Briar, possibly soon fcitx too
2022-03-18 12:40:04 +02:00
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()