proper gui detect + unicode on Linux