mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
chore(display): open presentations read only
This commit is contained in:
@@ -16,8 +16,8 @@ func OpenPresentation(path string) error {
|
|||||||
return fmt.Errorf("failed to create temporary profile directory: %w", err)
|
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)
|
result := shared.RunShellCommand(runningHelpProgram)
|
||||||
|
runningHelpProgram = exec.Command("soffice", "--show", path, "--nologo", "--view", "--norestore", fmt.Sprintf("-env:UserInstallation=file:///%s", tempDirPath))
|
||||||
killedByParent := -1
|
killedByParent := -1
|
||||||
if result.ExitCode != 0 && result.ExitCode != killedByParent {
|
if result.ExitCode != 0 && result.ExitCode != killedByParent {
|
||||||
return errors.New(result.Stderr)
|
return errors.New(result.Stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user