diff --git a/home/stormux/.xinitrc b/home/stormux/.xinitrc index ae15852..0f4f2e4 100755 --- a/home/stormux/.xinitrc +++ b/home/stormux/.xinitrc @@ -27,18 +27,18 @@ run_wine() { local needNvda="${3:-}" pushd "$HOME/.local/games/$gameDir" if [[ "$(uname -m)" != "x86_64" ]]; then - if [[ ${#needNvda} > 1 ]]; then - systemctl --user start ${needNvda}.service + if [[ ${#needNvda} -gt 1 ]]; then + systemctl --user start "${needNvda}.service" FEXBash -c "wine \"$exeName\"" - systemctl --user stop ${needNvda}.service + systemctl --user stop "${needNvda}.service" else FEXBash -c "wine $exeName" fi else - if [[ ${#needNvda} > 1 ]]; then - systemctl --user start ${needNvda}.service + if [[ ${#needNvda} -gt 1 ]]; then + systemctl --user start "${needNvda}.service" wine "$exeName" - systemctl --user stop ${needNvda}.service + systemctl --user stop "${needNvda}.service" else wine "$exeName" fi @@ -185,7 +185,7 @@ run_native() { "py") python3 "$exeName" ;; - "py") + *) ./"$exeName" ;; esac @@ -339,6 +339,9 @@ case "$GAME" in "RS Games") run_wine "RS Games Client" "rsg.exe" "nvda2speechd-important" ;; + "Play Palace") + exec /home/stormux/.playpalace + ;; "Scramble") run_wine "scramble_win32" "scramble.exe" "nvda2speechd" ;; diff --git a/usr/local/bin/game_launcher.py b/usr/local/bin/game_launcher.py index 44b46bb..b9cd712 100755 --- a/usr/local/bin/game_launcher.py +++ b/usr/local/bin/game_launcher.py @@ -1103,7 +1103,7 @@ if __name__ == "__main__": # Add board and card games section menu.add_section("Board and Card Games") - menu.add_item("Board and Card Games", "Play Palace", "/home/stormux/.playpalace") + menu.add_item("Board and Card Games", "Play Palace", "GAME='Play Palace' startx") menu.add_item("Board and Card Games", "RS Games", "GAME='RS Games' startx") # Add emulators section