From 30dc34a8483b30d0aa721f35b379a5c41b1141ce Mon Sep 17 00:00:00 2001 From: m2Giles <69128853+m2Giles@users.noreply.github.com> Date: Sun, 7 Jan 2024 10:43:12 -0800 Subject: [PATCH] fix: Auto rotate legion go screen (#660) --- system_files/desktop/shared/usr/bin/bazzite-user-setup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system_files/desktop/shared/usr/bin/bazzite-user-setup b/system_files/desktop/shared/usr/bin/bazzite-user-setup index c6365845..f5a193e0 100755 --- a/system_files/desktop/shared/usr/bin/bazzite-user-setup +++ b/system_files/desktop/shared/usr/bin/bazzite-user-setup @@ -123,14 +123,14 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam # Legion Rotation Fix AUTOSTART_FOLDER=${XDG_CONFIG_HOME:-$HOME/.config} if [[ ":83E1:" =~ ":$SYS_ID" ]] && [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then - if [[ ! -f "$AUTOSTART_FOLDER/autostart/legionfix" ]]; then + if [[ ! -f "$AUTOSTART_FOLDER/autostart/bazzite-handle-legion-go-rotation.desktop" ]]; then echo 'Adding legion rotation fix' mkdir -p "$AUTOSTART_FOLDER/autostart" - ln -s "/usr/libexec/bazzite-handle-legion-go-rotation" "$AUTOSTART_FOLDER/autostart/legionfix" + printf "[Desktop Entry]\nExec=/usr/libexec/bazzite-handle-legion-go-rotation\nIcon=dialog-scripts\nName=bazzite-handle-legion-go-rotation\nType=Application\nX-KDE-AutostartScript=true\n" > "$AUTOSTART_FOLDER/autostart/bazzite-handle-legion-go-rotation.desktop" fi - elif [[ -f "$AUTOSTART_FOLDER/autostart/legionfix" ]]; then + elif [[ -f "$AUTOSTART_FOLDER/autostart/bazzite-handle-legion-go-rotation.desktop" ]]; then echo 'Non-legion or GNOME detected, removing legionfix' - rm -f "$AUTOSTART_FOLDER/autostart/legionfix" + rm -f "$AUTOSTART_FOLDER/autostart/bazzite-handle-legion-go-rotation.desktop" fi fi