chore(display): open presentations read only

This commit is contained in:
2025-12-03 16:25:21 +01:00
parent 013a3ca487
commit df1ea7b163
+1 -1
View File
@@ -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)