MinimServer Forum

Full Version: Minimwatch unable to create tray icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Sometime in the past month or so something has changed. Minimwatch used to work well on my ubuntu 22.04 system. However, now it can't create the tray icon.

TopIconsFix is installed.
Java openjdk-11-jre 11.0.23+9-1ubuntu1~22.04.1 (and headless)

I can't find the version of minimwatch, but I kept it up to date earlier this year.
If the JRE is headless, it won't be able to create a tray icon. Have you checked the minimwatch.log file?
(16-06-2024 09:04)simoncn Wrote: [ -> ]If the JRE is headless, it won't be able to create a tray icon. Have you checked the minimwatch.log file?

The log is:
MinimWatch 2.2, Copyright © 2012-2022 Simon Nash. All rights reserved.
OpenJDK Runtime Environment (build 11.0.23+9-post-Ubuntu-1ubuntu122.04.1)
OpenJDK 64-Bit Server VM (build 11.0.23+9-post-Ubuntu-1ubuntu122.04.1, mixed mode, sharing)
Platform default charset is UTF-8
System platform is linux-x64
MinimWatch: unable to create tray icon
MinimWatch: unable to create tray icon

I have both the ordinary jre and the headless one installed, and as far as I know I always have had. If I try to remove the headless jre it says I have to remove the ordinary one as well, so I didn't. The system is an ordinary desktop PC.
Please create a new file in the minimwatch/data directory named minimwatch defaults. This file should contain this single line:

.logLevel = debug

After doing this, stop and restart MinimWatch. The minimwatch.log file should now contain debug information. Please attach the minimwatch.log file to a post here.
(16-06-2024 14:54)simoncn Wrote: [ -> ]Please create a new file in the minimwatch/data directory named minimwatch defaults. This file should contain this single line:

.logLevel = debug

After doing this, stop and restart MinimWatch. The minimwatch.log file should now contain debug information. Please attach the minimwatch.log file to a post here.
I uninstalled a reinstalled a bit earlier, to no effect.

Here is the log (I realised I have to put a full stop after minimwatch. not a space).
Thanks for this. The problem is caused by Java having been updated to 11.0.23. This Java update contains code that disables system tray icons on some versions of GNOME shell.

MinimWatch update 112 has a fix/workaround for this Java issue. This update should be installed automatically when you start MinimWatch but is not installed on your system. Have you disabled automatic updates for MinimWatch?
(16-06-2024 22:02)simoncn Wrote: [ -> ]Thanks for this. The problem is caused by Java having been updated to 11.0.23. This Java update contains code that disables system tray icons on some versions of GNOME shell.

MinimWatch update 112 has a fix/workaround for this Java issue. This update should be installed automatically when you start MinimWatch but is not installed on your system. Have you disabled automatic updates for MinimWatch?
Yes, I had disabled auto updates. I tried setting .autoUpdate to true in minimwatch.config, but it didn't like that (it created an error file). So I deleted minimwatch.config, but it still fails to create the icon. The config file now contains:

.configVersion = 2.2.100
.integrityCheck = 2b6fff1494c35e4de983d3ed7298248b5
Please post your minimwatch.log file.
(17-06-2024 09:04)simoncn Wrote: [ -> ]Please post your minimwatch.log file.
Here it is.
Thanks for this log. From it, I see that MinimWatch is creating the tray icon before it checks for automatic updates. When it fails to create the tray icon, it exits with an error message and the automatic update is not installed.

You should be able to work around this problem by opening a Terminal window and running this command from your MinimWatch installation directory:

./minimwatch/bin/startc

This starts a console version of MinimWatch that does not attempt to create a tray icon. It should detect and install MinimWatch update 112 and then relaunch. After the relaunch, type 'exit' to exit the console version. You can now start the graphical version of MinimWatch and the tray icon should appear.
Pages: 1 2 3 4
Reference URL's