mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47: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 {
|
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)
|
result := shared.RunShellCommand(cmd)
|
||||||
if result.ExitCode != 0 {
|
if result.ExitCode != 0 {
|
||||||
return errors.New(result.Stderr)
|
return errors.New(result.Stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user