Ah, thats an interesting one Fred.
You should not need libayatana on XFCe, its only necessary, as I understand it, on a Gnome Desktop (along with some Gnome extensions). Are you running a multidesktop system ? Where you select the Desktop as you login ?
I suspect you could have made it work if you started your app lile this -
LAZUSEAPPIND=NO ./project1 [enter]
Be interesting to know. I don't have that code in the GTK3 version, only the GTK2 version of TrayIcon incidentally. And Qtx does not know about it either.
I do have a couple of "dual boot" (desktop only) VM I use for testing and have not seen any conflicts previously. I have libayatana installed on my Mate system and never had any problems. But I do remember that XFCe did announce they were developing their own SystemTray model a few years ago, along with a programme to eliminate all GTK2 code from XFCe.
Right now, the TrayIcon code 'prefers' libayatana if it finds it, that appears to be OK everywhere I test but now I need to start testing for combinations ! In my own app, I determine if the user is using Gnome and then look for libayatana and the gnome extension and warn them to install or activate the extension if necessary. Thats not necessary on Ubuntu Gnome but is necessary on all the other non-Ubuntu Gnome using systems.
Gnome puts a lot of effort into making things hard for us.
Davo