Skip to content

Scan PATH environment variable for java on non-windows OS #343

@TymanWasTaken

Description

@TymanWasTaken

Original reporter/ticket ID

No response

Project

Core

Describe the bug

OneLauncher checks the Path on Windows, but not on MacOS or Linux, meaning if a distro installs java in a location not expected by OneLauncher, but adds it to the PATH so it can still be found, OneLauncher won't be able to find it.

Steps to reproduce

  1. Install java in an unexpected location and add it to your PATH
  2. Attempt to start minecraft
  3. OneLauncher attempts to download java at runtime instead of use the existing one

Expected behavior

OneLauncher uses the system installed java version

Operating System information

NixOS Unstable, tested with jre8 and jre{17,18}_minimal packages

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions