The current Linux discovery tries to look at $UNITY_ROOT/Editor/Data/PackageManager/Unity/PackageManager to find the version, but this path doesn't exist, and discovery fails. AFAICT, there is no reliable way to get the current Unity version, other than parsing the name of the containing folder.
The current Linux discovery tries to look at
$UNITY_ROOT/Editor/Data/PackageManager/Unity/PackageManager
to find the version, but this path doesn't exist, and discovery fails. AFAICT, there is no reliable way to get the current Unity version, other than parsing the name of the containing folder.