summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-12-31 16:51:57 +0100
committerCarl Hetherington <cth@carlh.net>2023-12-31 16:52:00 +0100
commit7c61fb83aab4fe573a06a2c638d9124d0a1dc51b (patch)
treed8029157721d534d08bf522a051343df18a4ce62 /run
parentd2e8478851845527cca7f4ef5203220fc0fc0de6 (diff)
Add --screenshot option to player.
Diffstat (limited to 'run')
-rwxr-xr-xrun/dcpomatic_player3
1 files changed, 3 insertions, 0 deletions
diff --git a/run/dcpomatic_player b/run/dcpomatic_player
index b7c51c227..0c565c251 100755
--- a/run/dcpomatic_player
+++ b/run/dcpomatic_player
@@ -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