Suwayomi-Server
Suwayomi-Server copied to clipboard
[Bug] Tray icon is not reliable
Device information
- Suwayomi-Server version: Full Release - v1.0.0 (Suwayomi-Server-v1.0.0-r1498-windows-x64.zip)
- Server Operating System: Windows 10 Pro N 22H2 19045.3930 x64
- Server Desktop Environment: N/A
- Server JVM version: build 17.0.8+9-LTS-211
- Client Operating System: Same as server
- Client Web Browser: Google Chrome Version 121.0.6167.189 (Official Build) (64-bit)
Steps to reproduce
- start suwayomi server
- close the server
- start it again
Expected behavior
Should open a tray icon every time I start the server
Actual behavior
It starts the server, opens the webclient, but doesn't show the tray icon that gives you the option to close the server, even though the settings is set to true in the webui and in the sever.conf file
Other details
As far as I see, this happens however I choose to start the server, but I usually start it from the "Suwayomi Launcher.bat" by clicking "Launch" instead of "Electron" in the "Suwayomi-Server Launcher" from a portable folder where I have the uncompressed .zip for this version (I:\Portable Software\Suwayomi-Server-v1.0.0-r1498-windows-x64).
The tray icon comes back if I go to "Settings">"Server">"Show icon in system tray" and disable and reenable it. Although sometimes it might take a while for the tray icon to come back (maximum 1 min).
Someone suggested in a question thread I made that it might have to do with using custom folders, so I tried using the default data folder in %localappdata%\Tachidesk but the issue persisted ―this was done for both the download and data directory.
application.log for the specific moment I started the server and the tray icon didn't appear
Edit: I was using 0.7.0 on Mac and the tray icon appeared to work, but it started needing to be disabled and enabled again after the upgrade to 1.0.0. I found that somehow the option to disable the tray icon was written to my configuration and that was overriding even the command arguments. Once I set that to true it worked.
@AbandonedCart that's a good point, I was however using "v0.7.0-r1472-x64" for windows and the issue was present back then. So I'm not sure if it differs from versions, platforms, or if it's just something that happens because of something related to settings as you said.
@TyrantRC Don't worry, I wasn't expecting you to have a solution. It can make a huge difference in debugging to know that an issue is happening on more than one platform, especially if one didn't start having it until later.
Having a similar issue. My system tray icon does appear at the launching of the server app, but goes away later. I'll return to the PC later in the day, and it's gone. The server is still accessible via the browser though, so it's still running.