From df1ea7b1635874e0b50146fd848553f15b50f433 Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:25:21 +0100 Subject: [PATCH] chore(display): open presentations read only --- display/pkg/file_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/pkg/file_handlers.go b/display/pkg/file_handlers.go index ed0dba3..d0183d7 100644 --- a/display/pkg/file_handlers.go +++ b/display/pkg/file_handlers.go @@ -16,8 +16,8 @@ func OpenPresentation(path string) error { return fmt.Errorf("failed to create temporary profile directory: %w", err) } - runningHelpProgram = exec.Command("soffice", "--show", path, "--nologo", "--norestore", fmt.Sprintf("-env:UserInstallation=file:///%s", tempDirPath)) result := shared.RunShellCommand(runningHelpProgram) + runningHelpProgram = exec.Command("soffice", "--show", path, "--nologo", "--view", "--norestore", fmt.Sprintf("-env:UserInstallation=file:///%s", tempDirPath)) killedByParent := -1 if result.ExitCode != 0 && result.ExitCode != killedByParent { return errors.New(result.Stderr)