Skip to content
Discussion options

You must be logged in to vote

@daodao97 @stffabi

Currently, wails does not support the tray menu, and both the systray library and wails use the main thread, so it is difficult to use them together.

so, I made a small program that uses the systray library. I also created a client library that can be controlled via IPC.

[Remote Tray] -- Local IPC -- [Wails App]

The library automatically installs the remote control tray application in the temporary folder, and after running it, set up IPC communication.

func RunTray(){
    tray, err := remotray.Run("<unix-domain-socket | pipe name for IPC>",
        remotray.WithTitle("TITLE"),)
    if err != nil {
        panic(err)
    }
    item, _ := tray.AddMenuItem("item title.1", 

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@daodao97
Comment options

@stffabi
Comment options

Comment options

You must be logged in to vote
3 replies
@daodao97
Comment options

@ironpark
Comment options

@leaanthony
Comment options

Answer selected by leaanthony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants