def use_desktop(desktop):
 detected = get_desktop()
 if (((desktop is None) or (desktop == 'standard')) and is_standard()):
  return 'standard'
 elif (((desktop is None) or (desktop == 'Windows')) and (detected == 'Windows')):
  return 'Windows'
 elif ((desktop or detected) == 'KDE'):
  return 'KDE'
 elif ((desktop or detected) == 'GNOME'):
  return 'GNOME'
 elif ((desktop or detected) == 'XFCE'):
  return 'XFCE'
 elif ((desktop or detected) == 'Mac OS X'):
  return 'Mac OS X'
 elif ((desktop or detected) == 'X11'):
  return 'X11'
 else:
  return None

def use_desktop ( desktop ) : detected = get_desktop ( ) if ( ( ( desktop is None ) or ( desktop == 'standard' ) ) and is_standard ( ) ) : return 'standard' elif ( ( ( desktop is None ) or ( desktop == 'Windows' ) ) and ( detected == 'Windows' ) ) : return 'Windows' elif ( ( desktop or detected ) == 'KDE' ) : return 'KDE' elif ( ( desktop or detected ) == 'GNOME' ) : return 'GNOME' elif ( ( desktop or detected ) == 'XFCE' ) : return 'XFCE' elif ( ( desktop or detected ) == 'Mac OS X' ) : return 'Mac OS X' elif ( ( desktop or detected ) == 'X11' ) : return 'X11' else : return None
decide which desktop should be used .