add workaround for bbswitch
set XDG variables in profile.d for better compatibility
some changes