summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-27 22:39:54 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-27 22:41:38 +0200
commit6066d80cbc5a60ea1697466b5b21521be7db6197 (patch)
tree481714bb7d99e1085518b77d92c9df4a9a6c3cc0
parent1dddce26733fc87e559e547003890357969350ca (diff)
Add --right-to-left option to run script.
-rwxr-xr-xrun/dcpomatic3
1 files changed, 3 insertions, 0 deletions
diff --git a/run/dcpomatic b/run/dcpomatic
index c4b1d15f2..e415f426c 100755
--- a/run/dcpomatic
+++ b/run/dcpomatic
@@ -43,6 +43,9 @@ elif [ "$1" == "--scaled" ]; then
elif [ "$1" == "--screenshot" ]; then
shift
GTK_PATH=/usr/local/lib/gtk-3.0 GTK_MODULES=gtk-vector-screenshot $binary "$*"
+elif [ "$1" == "--right-to-left" ]; then
+ shift
+ LANGUAGE=fa_IR.UTF8 LANG=fa_IR.UTF8 LC_ALL=fa_IR.UTF8 $binary "$*"
else
$binary $* 2> >(grep -v Gtk-CRITICAL | grep -v Gtk-WARNING)
fi