Status icon uses fallback "edit-paste" instead of "clipman"
Submitted by Spass
Assigned to Mike Massonnet
Description
Hello.
I use Clipman 1.4.2 on my Xubuntu 18.04 and 18.10 (VM install) and I've noticed that its status icon in the Notification Area is acting strangely. Note that I'm not talking about Clipman panel plugin here, just the status icon. One time it uses the proper icon (named "clipman" in the theme) and another time it uses the fallback ("edit-paste"). On fresh start it always uses a proper "clipman" icon, but after a system reboot (or couple of them) it switches to "edit-paste" for some reason. You can see the code regarding those icons here: https://git.xfce.org/panel-plugins/xfce4-clipman-plugin/tree/panel-plugin/main-status-icon.c#n107
Screenshot - https://ibb.co/hykUEz (left side - Xubuntu 18.04 with Papirus icons, right side - Xubuntu 18.10 with elementary Xfce icons. The top icon is a proper one, bottom one is a fallback)
Seems like xfce4-clipman (command from the autostart) is starting before something important (GTK? xsettings?) and it gets "confused" and it chooses the fallback icon for some reason, even if the "clipman" icon is present in the icon theme. I've described my issue on Xfce forum and ToZ provided a workaround with delaying "xfce4-clipman" start system-wide using "sleep" and that solved the problem. See more here: https://forum.xfce.org/viewtopic.php?id=12441
To summarize - xfce4-clipman fails to use a proper status icon when launched with system (from the autostart), but delaying its start fixes it.
In addition to that, here are some warning massages from .xsession-errors regarding xfce4-clipman:
** (xfce4-clipman:1188): WARNING **: 01:04:51.112: Unable to register GApplication: An object is already exported for the interface org.gtk.Application at /org/xfce/clipman (xfce4-clipman:1188): GLib-GIO-CRITICAL **: 01:04:51.112: g_application_get_is_remote: assertion 'application->priv->is_registered' failed (xfce4-clipman:1188): GLib-WARNING **: 01:04:51.112: g_set_application_name() called multiple times
But those messages are probably not related to the icon issue, because they show even when I'm using the workaround with the delay and the status icon is the proper one.
Version: 1.4.2