-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added a basic example of how to use webview with VTray to create a de… #28
base: main
Are you sure you want to change the base?
Conversation
…sktop app with a custom notification tray icon with menus.
Thanks for the PR @Ouri028. Good joob with the lib. Since webview is a cross-platform library, I would like to wait until VTray supports at least two of the major OSes before adding it as example to the repo. Also, I'm currently not able to test Windows things as I'm only having a mac arm machine available where I cannot virtualise x64 architecture on and V is not running on windows arm. |
Hey man, That's fine, I just pushed a new version that supports Linux, I am currently working on the MacOS version (managed to secure myself a Mac :D), currently working off the example that was on the V repo to display the Mac tray, but will let you know as soon as MacOS is also supported. Please keep in mind that the Linux version was only tested on Debian based images (Ubuntu, Lubuntu, etc), so no idea if it will work with all distros. To be honest, I do not plan to support a large amount of distros as it can get a bit much. |
Nice to hear about the linux support. Covering the main desktop environments like Gnome and Plasma is totally sufficient imho. Extended support can come over time. Also good to hear about the mac situation 😁. When I have a Windows device available for checking I'll add a review, so we can come to merge this. Thanks already! |
Trying to run the example on macOS ventrua I'm encountering:
|
Hey man, So, I had a look into this issue and it seems MacOS does not like running tray processes in other threads, but there is a fix for this, will post an update to the example a little later with the changes. |
Updated the code example to include the fix for MacOS threading. |
Thanks for the update @Ouri028 Now it builds and runs! The things I'm noticing now:
|
Also updated example to switch between icons depending on OS.
Hey @ttytm , Thanks for the detailed issue, I have fixed them and pushed a new version of VTray and the example, please let me know if you encounter anything else. 😄 |
779f17c
to
bd5aeeb
Compare
0b77c45
to
f47d54b
Compare
PR is on hold:
|
Added a basic example of how to use webview with VTray to create a desktop app with a custom notification tray icon with menus.