Post Reply 
Minimwatch unable to create tray icon
16-06-2024, 08:59
Post: #1
Minimwatch unable to create tray icon
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.
Find all posts by this user
Quote this message in a reply
16-06-2024, 09:04
Post: #2
RE: Minimwatch unable to create tray icon
If the JRE is headless, it won't be able to create a tray icon. Have you checked the minimwatch.log file?
Find all posts by this user
Quote this message in a reply
16-06-2024, 09:19
Post: #3
RE: Minimwatch unable to create tray icon
(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.
Find all posts by this user
Quote this message in a reply
16-06-2024, 14:54
Post: #4
RE: Minimwatch unable to create tray icon
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.
Find all posts by this user
Quote this message in a reply
16-06-2024, 15:10
Post: #5
RE: Minimwatch unable to create tray icon
(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).


Attached File(s)
.log  minimwatch.log (Size: 26.8 KB / Downloads: 2)
Find all posts by this user
Quote this message in a reply
16-06-2024, 22:02 (This post was last modified: 16-06-2024 22:02 by simoncn.)
Post: #6
RE: Minimwatch unable to create tray icon
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?
Find all posts by this user
Quote this message in a reply
17-06-2024, 07:30
Post: #7
RE: Minimwatch unable to create tray icon
(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
Find all posts by this user
Quote this message in a reply
17-06-2024, 09:04
Post: #8
RE: Minimwatch unable to create tray icon
Please post your minimwatch.log file.
Find all posts by this user
Quote this message in a reply
17-06-2024, 09:12
Post: #9
RE: Minimwatch unable to create tray icon
(17-06-2024 09:04)simoncn Wrote:  Please post your minimwatch.log file.
Here it is.


Attached File(s)
.log  minimwatch.log (Size: 26.8 KB / Downloads: 1)
Find all posts by this user
Quote this message in a reply
17-06-2024, 10:08
Post: #10
RE: Minimwatch unable to create tray icon
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)