Skip to content

Fix macosx ventura updater #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added some more logging
  • Loading branch information
cmaglie committed Feb 15, 2023
commit 06e01fe1837dbcf1b633db18de2ea3c579cba8f6
4 changes: 4 additions & 0 deletions systray/exec_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,19 @@ import "C"
import (
"os/exec"
"path/filepath"

"github.com/sirupsen/logrus"
)

func execApp(path string, args ...string) error {
if filepath.Ext(path) != ".app" {
// If not .app, fallback to standard process execution
logrus.WithField("path", path).WithField("args", args).Info("Running new app with os/exec.Exec")
cmd := exec.Command(path, args...)
return cmd.Start()
}

logrus.WithField("path", path).WithField("args", args).Info("Running new app with openApplicationAtURL")
argc := C.int(len(args))
argv := C.makeCharArray(argc)
for i, arg := range args {
Expand Down