0xAX / 0xAX/notificator

Mac Problem fork/exec /usr/bin/osascript: invalid argument

Đang mở
#25 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
452
Fork
49
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I just run demo, and err like this "fork/exec /usr/bin/osascript: invalid argument" occurred
I don’t understand why

my demo is like :

msg := string(buf)
err := notify.Push("You have new Msg", msg, "/home/user/icon.png", notificator.UR_NORMAL)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

The issue involves a macOS-specific error when calling osascript via the notificator library. Start by examining the library's source code for the macOS notification implementation, likely in a file like notify_darwin.go. Look at how the osascript command is constructed and executed. Check if the arguments passed to osascript are properly formatted, especially the icon path. Run the demo code on a macOS system to reproduce the error and trace the execution.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.