From 66ec27d4e2ab24f8ae5220103256ee031b57bb4c Mon Sep 17 00:00:00 2001 From: Rick Peters Date: Fri, 2 Oct 2026 09:28:05 +0200 Subject: [PATCH] test: vmstate reports Steam's autostart entry (silent/plain/none) instead of the old unit --- scripts/vmshot.sh | 2 +- scripts/vmstate.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vmshot.sh b/scripts/vmshot.sh index ff65d28..7fdd85f 100755 --- a/scripts/vmshot.sh +++ b/scripts/vmshot.sh @@ -16,7 +16,7 @@ export XDG_RUNTIME_DIR=/run/user/$uid DBUS_SESSION_BUS_ADDRESS=unix:path=/run/us rm -f /tmp/vmshot.png if [ -n "$clean" ]; then # Steam as a whole: closing only its web helper leaves a black window. - # It comes back at the next login (steam-desktop-autostart). + # It comes back at the next login (Steam autostart entry). steam -shutdown >/dev/null 2>&1 & sleep 5; pkill -u "$USER" -x steam; pkill -u "$USER" -x steamwebhelper pkill -u "$USER" cachyos-hello; pkill -u "$USER" -x konsole sleep 2 diff --git a/scripts/vmstate.sh b/scripts/vmstate.sh index 60fce6e..a83776f 100755 --- a/scripts/vmstate.sh +++ b/scripts/vmstate.sh @@ -8,7 +8,7 @@ yn() { [ -e "$1" ] && echo y || echo n; } echo "DM=$(systemctl show -p Id --value display-manager) sddm-autologin=$(yn /etc/sddm.conf.d/10-gamescope-autologin.conf) sync=$(yn /etc/systemd/system/sync-steamos-session.path) sudoers=$(sudo test -f /etc/sudoers.d/gamescope-session-switch && echo y || echo n)" echo "plasmalogin [Autologin]: $(sed -n '/^\[Autologin\]/,/^\[/p' /etc/plasmalogin.conf | grep -v '^\[' | tr '\n' ' ')" echo "shortcut=$(grep -h Exec= ~/Desktop/*Gaming*.desktop 2>/dev/null || echo none)" -echo "steam-unit=$([ -f ~/.config/systemd/user/steam-desktop-autostart.service ] && systemctl --user is-enabled steam-desktop-autostart.service || echo none) glyphs=$(yn ~/.config/environment.d/99-gamescope-steam-glyphs.conf)" +echo "steam-autostart=$(grep -qs "^Exec=.*-silent" ~/.config/autostart/steam.desktop && echo silent || ([ -f ~/.config/autostart/steam.desktop ] && echo plain || echo none)) glyphs=$(yn ~/.config/environment.d/99-gamescope-steam-glyphs.conf)" echo "lnf=$(kreadconfig6 --file kdeglobals --group KDE --key LookAndFeelPackage) dark-lnf=$(kreadconfig6 --file kdeglobals --group KDE --key DefaultDarkLookAndFeel) scheme=$(kreadconfig6 --file kdeglobals --group General --key ColorScheme) cursor=$(kreadconfig6 --file kcminputrc --group Mouse --key cursorTheme) vapor-pkg=$(pacman -Q cachyos-vapor 2>/dev/null || echo none) layout-backup=$(yn ~/.local/state/steamify/theme-layout)" echo "wallpaper: $(grep -h '^Image=' ~/.config/plasma-org.kde.plasma.desktop-appletsrc | sort -u | tr '\n' ' ')" echo "lock_screen=$(kreadconfig6 --file kdeglobals --group 'KDE Action Restrictions' --key action/lock_screen) autolock=$(kreadconfig6 --file kscreenlockerrc --group Daemon --key Autolock) metaL=$(kreadconfig6 --file kglobalshortcutsrc --group ksmserver --key 'Lock Session' | cut -c1-12)"