Add mate-desktop as dependency and use function from there