From 1e43aeffae0090bcfec1601035feac2fcf55e968 Mon Sep 17 00:00:00 2001 From: Markus Weigelt Date: Tue, 29 Aug 2023 15:30:27 +0200 Subject: [PATCH] Starting browser maximized and without edit/open functionality --- ocrdbrowser/_subprocess.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ocrdbrowser/_subprocess.py b/ocrdbrowser/_subprocess.py index a357b06..0c60030 100644 --- a/ocrdbrowser/_subprocess.py +++ b/ocrdbrowser/_subprocess.py @@ -153,4 +153,11 @@ def browser_command(workspace: str, broadway_pid: int) -> str: mets_path = workspace + "/mets.xml" kill_broadway = f"; kill {broadway_pid}" browse_ocrd = cast(str, which("browse-ocrd")) - return " ".join([browse_ocrd, mets_path, kill_broadway]) + return " ".join( + [ + browse_ocrd, + "-mr", + mets_path, + kill_broadway, + ] + )