We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee92729 + c72f40b commit 01c8321Copy full SHA for 01c8321
internal/gui/settings.go
@@ -8,6 +8,7 @@ import (
8
"path/filepath"
9
"runtime"
10
"time"
11
+ "os/exec"
12
13
"fyne.io/fyne/v2"
14
"fyne.io/fyne/v2/container"
@@ -75,17 +76,8 @@ func settingsWindow(s *FyneScreen) fyne.CanvasObject {
75
76
return fyne.CurrentApp().Preferences().String("ffmpeg")
77
}
78
- os := runtime.GOOS
79
- switch os {
80
- case "windows":
81
- return "C:/ffmpeg/bin/ffmpeg"
82
- case "linux":
83
- return "ffmpeg"
84
- case "darwin":
85
- return "/opt/homebrew/bin/ffmpeg"
86
- default:
87
88
- }
+ path, _ := exec.LookPath("ffmpeg")
+ return path
89
90
}()
91
ffmpegTextEntry.Refresh()
0 commit comments