getlantern / systray

a cross platfrom Go library to place an icon and menu in the notification area
Apache License 2.0
3.24k stars 446 forks source link

systray.SetTitle("Awesome App") doesn't work #84

Open adeptoleg opened 5 years ago

adeptoleg commented 5 years ago

Doesn't show text "Awesome App". OS WIN10 x64

GOROOT=E:\Go #gosetup
GOPATH=C:\Users\adept\go #gosetup
E:\Go\bin\go.exe build -i -ldflags -H=windowsgui -o E:\Projects\TestCompile\go_build_TestTimeGo_.exe . #gosetup
"E:\Program Files\JetBrains\GoLand 2018.3.5\bin\runnerw64.exe" E:\Projects\TestCompile\go_build_TestTimeGo_.exe -i -ldflags -H=windowsgui #gosetup
runnerw.exe: AttachConsole failed with error 6: The handle is invalid.
ergoz commented 5 years ago

SetTitle not works on Windows. You can check source file systray_windows.go#L677 and find this:

// SetTitle sets the systray title, only available on Mac.
func SetTitle(title string) {
    // do nothing
}
homax commented 5 years ago

Hi, is there a problem to implement this function SetTitle for windows?

alourie commented 3 years ago

I'm having this issue as well, running master branch from git. SetTitle() doesn't seem to have any effect.

I'm running Linux (arch) with i3 and polybar as a systemtray, also tested with trayer. Any pointers would be appreciated.

henri9813 commented 2 months ago

No news about it ?