add native WM detection to linux