commit 207e4ab

hovercats  ·  2026-08-21 14:15:17 +0000 UTC
parent b059459
quit first when running with -g flag.
this will stop any running mpv instance on the socket, and avoid users now having two instances running on the same socket, unable to stop the previous one without manuall intervension.
1 files changed,  +1, -0
M ampv
M ampv
+1, -0
1@@ -40,6 +40,7 @@ switch($1) {
2 	case -S
3 		player --idle &
4 	case -g
5+		printf 'quit\n' | njetcat
6 		shift
7 		if (~ $#* 0) {
8 			find $musicdir -type f -name *.opus > /tmp/.music