Two indicator icons in panel

Bug #1997152 reported by david

This bug report was converted into a question: question #704040: Two indicator icons in panel.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Diodon
Invalid
Undecided
Unassigned

Bug Description

I'm running Diodon 1.13.0. After upgrading to Linux Mint 21 (based on Ubuntu 22.04) I have two Diodon indicator icons next to each other in my panel after rebooting or restarting my system. The left icon is the extraneous one and can be dismissed removed from the panel by right clicking on it and selecting Clear. If not manually dismissed, the left icon seems to eventually disappear on its own after my system has been in use for an indeterminate period of time.

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks for reporting this issue.

When you have two indicator icons could you do the following:

1. go to a terminal and run "ps -ef | grep diodon" and attach the output here
2. take a screenshot of the panel and attach it.

This will help to further investigate the issue.

Revision history for this message
david (dm55) wrote :

Here's the terminal ouput (I replaced the actual user name with <user>):

<user> 2303 1979 0 09:15 ? 00:00:00 diodon
<user> 4574 4518 0 09:16 pts/0 00:00:00 grep --color=auto diodon

Screenshot attached.

Revision history for this message
Oliver Sauder (sao) wrote :

OK strange, as there is only one Diodon process running.

What Linux Mint flavor are you running?

Revision history for this message
david (dm55) wrote :

Cinnamon DE under the main edition of version 21.

Revision history for this message
Oliver Sauder (sao) wrote :

I tried this on a fresh installation of Linux Mint 21 and cannot reproduce it.

In Ubuntu 22.04 the Diodon version is actually 1.12.0. What way did you install the current version 1.13.0?

Revision history for this message
david (dm55) wrote :

I originally installed Diodon, and have been getting updates from, your "diodon-team/stable" PPA. Interestingly, the Linux Mint Software Manager does show 1.13.0~ubuntu22.04.01 as being available through that source.

Revision history for this message
Oliver Sauder (sao) wrote :

OK. What you could try is that you delete Diodon and then reinstall it again to avoid old desktop files which might not got correctly updated from the upgrade:

sudo apt purge libdiodon0 diodon
sudo apt update
sudo apt install diodon

Restart your whole computer and see whether it works.

Revision history for this message
david (dm55) wrote (last edit ):

Unfortunately, that didn't work. I figured all along that I'd end up deleting and reinstalling and that would do it, but surprisingly it didn't work.

Revision history for this message
Oliver Sauder (sao) wrote :

What you could check is to look at the startup application list (there is an app in Cinammon) whether Diodon is only listed there once or twice?

If it is added twice, then remove one. If it is there only once, try to disable it and see whether Diodon still starts or not.

Revision history for this message
david (dm55) wrote :

Diodon was only listed once in the Startup Applications list. I disabled it and rebooted, Diodon did not start (no icon and no running process). Starting Diodon manually resulted in just one tray icon. After re-enabling Diodon in the Startup Applications and rebooting, I'm back to two icons. Baffling. I don't think it should matter, but I realized I should have noted that I am running Diodon so that it only stores clipboard items in memory.

Revision history for this message
Oliver Sauder (sao) wrote :

Reading through your feedback, I have a strong feeling that this issue has nothing to do with Diodon, but with the Ayantana Application Indicator in combination with the Cinammon desktop environment and its panels. Potentially a race condition.

The reason being is that the only thing Diodon does in terms of indicator is registering it with the Ayantana Indicator. Nothing else. Diodon uses unique logic that it cannot be run twice and we already ruled that possibility out as there was only one Diodon process running, but still you saw two Diodon icons.

See the code bit here https://github.com/diodon-dev/diodon/blob/master/plugins/indicator/indicator-plugin.vala which handles the indicator logic.

Therefore, I am converting this to a question. Feedback is very welcome with potential workarounds, links to other bug trackers etc.

Changed in diodon:
status: New → Invalid
Revision history for this message
david (dm55) wrote :

Just to close the loop on this, I found that delaying Diodon's startup by 10 seconds fixed my problem. With no delay, two indicator icons after every boot. With the 10 second delay, only one icon. So, yes, probably a race condition. I'm happy to have it working fine with the 10 second delay.

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks. Great that you found a workaround. Added your answer to the question as well, in case someone else has the same issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.