This is a common issue with Cinnamon's system tray (systray) where certain applications fail to register their icons properly during the desktop startup sequence. Here's what's happening and how to fix it:
Why Icons Are Missing
The system tray icons disappear because of timing issues during Cinnamon's startup process. When you log in, Cinnamon loads its panels and applets, but some applications (like diodon and flameshot) may start before the system tray is fully initialized, or there might be communication failures between the applications and the tray service.
When you run cinnamon --replace, it restarts the window manager and panel system, giving applications a fresh opportunity to register their tray icons with a fully initialized system.
Debugging Steps
First, let's gather information about what's happening:
Check if applications are actually running:
ps aux | grep -E "(diodon|flameshot)"
Monitor system tray messages:
journalctl -f | grep -i tray
Check Cinnamon logs:
journalctl -u cinnamon-session --since "10 minutes ago"
Examine application startup timing:
systemctl --user list-units --type=service | grep -E "(diodon|flameshot)"
Solutions
Solution 1: Delay Application Startup
Create or modify the desktop files to delay startup:
For diodon, edit ~/.config/autostart/diodon.desktop:
[Desktop Entry]
Type=Application
Exec=sh -c "sleep 5 && diodon"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Diodon
Comment=Clipboard manager
For flameshot, edit ~/.config/autostart/flameshot.desktop:
[Desktop Entry]
Type=Application
Exec=sh -c "sleep 5 && flameshot"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Flameshot
Comment=Screenshot tool
Solution 2: Restart System Tray Service
Create a script that restarts the panel after login:
#!/bin/bash
# Save as ~/.local/bin/fix-systray.sh
sleep 10
cinnamon-settings panel --reset-to-defaults
Make it executable and add to autostart:
chmod +x ~/.local/bin/fix-systray.sh
Solution 3: Use a Startup Script
Create ~/.local/bin/delayed-tray-apps.sh:
#!/bin/bash
sleep 8
killall diodon flameshot 2>/dev/null
sleep 2
diodon &
flameshot &
Add this script to your autostart applications instead of the individual apps.
Solution 4: Check Panel Configuration
Reset the panel configuration:
dconf reset -f /org/cinnamon/panels/
cinnamon --replace &
Advanced Debugging
Monitor D-Bus messages:
dbus-monitor --session "interface='org.kde.StatusNotifierWatcher'"
Check if StatusNotifierHost is running:
qdbus --session | grep StatusNotifier
Examine application-specific logs:
# For diodon
diodon --debug
# For flameshot
flameshot config
Permanent Fix
The most reliable solution is usually Solution 1 (delaying startup) combined with ensuring the applications restart if they lose their tray connection. You can also try installing indicator-application which provides better compatibility:
sudo apt install indicator-application
Then add it to your panel applets through Cinnamon Settings > Panel.
The root cause is typically that Ubuntu 24's Cinnamon implementation has some timing sensitivity in how it initializes the system tray service relative to when applications attempt to register their icons. The delay approach gives the desktop environment enough time to fully initialize before applications try to connect.