#!/bin/sh

if [ $(echo "$XDG_SESSION_DESKTOP") = "mate" ]
then
	dbus-launch /usr/share/hplip/systray.py $@
else
if [ $(echo "$XDG_SESSION_DESKTOP") = "gnome" ]
then 
	Exec=env QT_QPA_PLATFORM=xcb /usr/share/hplip/systray.py $@
else
	/usr/share/hplip/systray.py $@
fi
fi
