mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
fix(display): deprecated libreoffice api
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ func GetDeviceMac() (string, error) {
|
||||
}
|
||||
|
||||
func OpenPresentation(path string) error {
|
||||
cmd := exec.Command("bash", "-c", "-r", fmt.Sprintf("soffice --show %s -nologo -norestore", path))
|
||||
cmd := exec.Command("soffice", "--show", path, "--nologo", "--norestore")
|
||||
result := shared.RunShellCommand(cmd)
|
||||
if result.ExitCode != 0 {
|
||||
return errors.New(result.Stderr)
|
||||
|
||||
Reference in New Issue
Block a user