private static boolean isGnome(){
  return System.getenv("GNOME_DESKTOP_SESSION_ID") != null;
}

private static boolean isGnome ( ) { return System . getenv ( "GNOME_DESKTOP_SESSION_ID" ) != null ; }
checks if we are currently running under gnome desktop .
