ghost_diag.sh 774 B

123456789101112
  1. #!/bin/bash
  2. # ghost_diag.sh <vm> - on a running GNOME VM: what is left of the engine, who holds a connection to the compositor and what
  3. # the extension still tracks. For a VM kept up with KEEP_VM=1 after a frozen wallpaper.
  4. HERE=$(cd "$(dirname "$0")" && pwd)
  5. "$HERE/linuxvm.sh" ssh "$1" '
  6. echo "== engine, helper and web processes"
  7. ps -eo pid,ppid,stat,etime,cmd | grep -E "[l]inux-wallpaperengine|[w]eb-helper|[g]nome-helper" | cut -c1-170
  8. echo "== sockets to the compositor and their peers"
  9. sudo ss -xp 2>/dev/null | grep -E "wayland|lwe-gnome" | cut -c1-200
  10. echo "== extension state"
  11. gdbus call --session --dest org.linuxwallpaperengine.Shell --object-path /org/linuxwallpaperengine/Shell --method org.linuxwallpaperengine.Shell.GetState 2>&1 | cut -c1-400
  12. ' </dev/null