From f99c093a13425772677b541459949d20306c128f Mon Sep 17 00:00:00 2001 From: Street Pea Date: Sat, 3 Sep 2022 20:45:01 -0700 Subject: [PATCH] Automation script now works with ' --- docs/setup/automation.md | 5 +++++ scripts/gen-launcher.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/setup/automation.md b/docs/setup/automation.md index 72fbf746..3b6b6c02 100644 --- a/docs/setup/automation.md +++ b/docs/setup/automation.md @@ -271,6 +271,11 @@ Now that you have `chiaki4deck` configured, it's time to make it wake up your Pl 2. `` + !!! Caution "Beware of '" + + If you have any ' in your nickname itself, such as `Street Pea's PS5`, you will need enter the `'` as `'\''`. Thus, for `Street Pea's PS5` instead of using `Street Pea's PS5` you would use `Street Pea'\''s PS5`. All other characters are fine. This is due to the PlayStation console allowing any manner of names (including non-valid hostnames with all manner of special characters) and Chiaki using that name in its configuration file. + + 3. `` 4. `` diff --git a/scripts/gen-launcher.sh b/scripts/gen-launcher.sh index 93398083..bff28209 100755 --- a/scripts/gen-launcher.sh +++ b/scripts/gen-launcher.sh @@ -135,7 +135,7 @@ sleep 1 trap - ERR # Begin playing PlayStation remote play via Chiaki on your Steam Deck :) -flatpak run re.chiaki.Chiaki4deck --${mode} stream '${server_nickname}' ${ps_ip} +flatpak run re.chiaki.Chiaki4deck --${mode} stream $(printf %q "${server_nickname}") ${ps_ip} EOF # Make script executable