Skip to content

Commit af12ea9

Browse files
ZegliusKyleGospo
authored andcommitted
fix(sunshine): Switch to sunshine-kms.service (#4123)
Signed-off-by: Zeglius <[email protected]>
1 parent 8501c6a commit af12ea9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

system_files/desktop/shared/usr/libexec/bazzite-user-setup

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ BAZZITE_CONFIG_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/bazzite"
1818
mkdir -p "$BAZZITE_CONFIG_DIR"
1919

2020
# SCRIPT VERSION
21-
USER_SETUP_VER=46
21+
USER_SETUP_VER=47
2222
USER_SETUP_VER_FILE="$BAZZITE_CONFIG_DIR/version"
2323
USER_SETUP_FEDORA_VER_FILE="$BAZZITE_CONFIG_DIR/fedora_version"
2424
USER_SETUP_IMAGE_VER_FILE=$BAZZITE_CONFIG_DIR/image_name""
@@ -235,6 +235,12 @@ if [[ ":83E1:ROG Ally RC71L:" =~ ":$SYS_ID:" ]]; then
235235
wpctl set-volume $(wp_audio_sinks | grep "17h/19h" | sed 's@^[^0-9]*\([0-9]\+\).*@\1@') 100% || true
236236
fi
237237

238+
# Swap sunshine.service with sunshine-kms.service
239+
if [[ $(systemctl --user status sunshine.service) == enabled && $(systemctl --user is-enabled sunshine-kms.service) == disabled ]]; then
240+
systemctl --user disable --now sunshine.service
241+
systemctl --user enable --now sunshine-kms.service
242+
fi
243+
238244
# Prevent future executions
239245
echo "Writing state file"
240246
echo $USER_SETUP_VER > $USER_SETUP_VER_FILE

0 commit comments

Comments
 (0)