Add --screenshot option to player.
authorCarl Hetherington <cth@carlh.net>
Sun, 31 Dec 2023 15:51:57 +0000 (16:51 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 31 Dec 2023 15:52:00 +0000 (16:52 +0100)
run/dcpomatic_player

index b7c51c227de1d5a47ea768136f73e47fb8cbc3a9..0c565c25186c7c268d08ca9f7973884801cfcc3c 100755 (executable)
@@ -22,6 +22,9 @@ elif [ "$1" == "--i18n" ]; then
 elif [ "$1" == "--perf" ]; then
     shift
     perf record $binary $*
+elif [ "$1" == "--screenshot" ]; then
+    shift
+    GTK_PATH=/usr/local/lib/gtk-3.0 GTK_MODULES=gtk-vector-screenshot $binary "$*"
 else
     $binary $*
 fi