mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Desktop integration (#2073)
* Open stash in system tray on Windows/MacOS * Add desktop notifications * MacOS Bundling * Add binary icon Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e48b2ba3e8
commit
0e514183a7
@@ -13,6 +13,7 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/stashapp/stash/pkg/desktop"
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
"github.com/stashapp/stash/pkg/utils"
|
||||
)
|
||||
@@ -202,7 +203,9 @@ func pathBinaryHasCorrectFlags() bool {
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
bytes, _ := exec.Command(ffmpegPath).CombinedOutput()
|
||||
cmd := exec.Command(ffmpegPath)
|
||||
desktop.HideExecShell(cmd)
|
||||
bytes, _ := cmd.CombinedOutput()
|
||||
output := string(bytes)
|
||||
hasOpus := strings.Contains(output, "--enable-libopus")
|
||||
hasVpx := strings.Contains(output, "--enable-libvpx")
|
||||
|
||||
Reference in New Issue
Block a user