← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #231661]: [1.0] Env.getOS() return MAC on linux centos 6.4

 

Question #231661 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/231661

Zed Zulu posted a new comment:
So I know it's technically deprecated, but it seems there's a typo in
Env.getOS()

/**
   * use Settings.isWindows .isMac .isLinux instead
   * @return the OS.XXX
   * @deprecated use the Settings features
   */
  @Deprecated
  public static OS getOS() {
		if (Settings.isWindows()) {
			return OS.WINDOWS;
		} else if (Settings.isMac()) {
			return OS.MAC;
		} else if (Settings.isLinux()) {
			return OS.MAC;
		} else {
			return OS.NOT_SUPPORTED;
		}
	}

It returns OS.MAC for when it's actually supposed to be Windows. Seems
like a typo?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.