Background
I'm developing an application in PyQt5 which uses the system tray. I've tried the application on LXDE where left clicking on the systray icon shows the menu (right click is handled by LXDE). My friend who runs XFCE has now also tried the application but for him the nothing happens when left clicking the systray icon, to see the menu he has to right click instead
Question
How can I get left click on the system tray in XFCE icon to show the systray menu?
Setup
Qt version: 5.7.1
Code
tray_icon = QtWidgets.QSystemTrayIcon(
QtGui.QIcon(mc_global.get_app_icon_path()),
self.matc_qapplication
)
tray_icon.show()
tray_menu = QtWidgets.QMenu(main_window)
# adding menu entries
tray_icon.setContextMenu(tray_menu)