From 2959f47835534d5541f304cb1d56167a2992e46c Mon Sep 17 00:00:00 2001 From: Adrien Date: Mon, 10 Mar 2025 17:31:19 +0100 Subject: [PATCH] bug fixes --- terminis/music.sh | 4 ++-- terminis/terminis.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terminis/music.sh b/terminis/music.sh index 686111b..a70b3c3 100755 --- a/terminis/music.sh +++ b/terminis/music.sh @@ -13,7 +13,7 @@ C8=-f4186; Db8=-f4434; D8=-f4698; Eb8=-f4978; E8=-f5274; F8=-f5587; Gb8=-f5919; dc=-l100; dcp=-l150; c=-l200; cp=-l300; n=-l400; np=-l600; b=-l800; bp=-l1200; r=-l1600 if command -v beep > /dev/null; then - while true; do + while [ $? -eq 0 ]; do beep $n $E5 -n $c $B4 -n $c $C5 -n $c $D5 -n $dc $E5 -n $dc $D5 -n $c $C5 -n $c $B4 \ -n $n $A4 -n $c $A4 -n $c $C5 -n $n $E5 -n $c $D5 -n $c $C5 \ -n $c $B4 -n $c $E4 -n $c $Ab4 -n $c $C5 -n $n $D5 -n $n $E5 \ @@ -31,6 +31,6 @@ if command -v beep > /dev/null; then -n $c $B4 -n $c $E4 -n $c $Ab4 -n $c $C5 -n $n $D5 -n $n $E5 \ -n $n $C5 -n $n $A4 -n $b $A4 \ -n $b $E5 -n $b $C5 -n $b $D5 -n $b $B4 -n $b $C5 -n $b $A4 -n $b $Ab4 -n $c $B4 -n $c $E4 -n $c $Ab4 -n $c $B4 \ - -n $b $E5 -n $b $C5 -n $b $D5 -n $b $B4 -n $n $C5 -n $n $E5 -n $n $A5 -n $n $A5 -n $r $Ab5 + -n $b $E5 -n $b $C5 -n $b $D5 -n $b $B4 -n $n $C5 -n $n $E5 -n $n $A5 -n $n $A5 -n $r $Ab5 > /dev/null done fi \ No newline at end of file diff --git a/terminis/terminis.py b/terminis/terminis.py index 22215f7..ed5b258 100644 --- a/terminis/terminis.py +++ b/terminis/terminis.py @@ -376,7 +376,7 @@ class Stats(Window): TITLE = "STATS" FILE_NAME = ".high_score" if sys.platform == "win32": - DIR_PATH = os.environ.get("appdata", os.path.expanduser("~\Appdata\Roaming")) + DIR_PATH = os.environ.get("appdata", os.path.expanduser(r"~\Appdata\Roaming")) else: DIR_PATH = os.environ.get("XDG_DATA_HOME", os.path.expanduser("~/.local/share")) DIR_PATH = os.path.join(DIR_PATH, DIR_NAME) @@ -498,7 +498,7 @@ class Stats(Window): class ControlsParser(ConfigParser): FILE_NAME = "config.cfg" if sys.platform == "win32": - DIR_PATH = os.environ.get("appdata", os.path.expanduser("~\Appdata\Roaming")) + DIR_PATH = os.environ.get("appdata", os.path.expanduser(r"~\Appdata\Roaming")) else: DIR_PATH = os.environ.get("XDG_CONFIG_HOME", os.path.expanduser("~/.config")) DIR_PATH = os.path.join(DIR_PATH, DIR_NAME)