diff --git a/src/license.jl b/src/license.jl index 2d5e3f62..c993e6ab 100644 --- a/src/license.jl +++ b/src/license.jl @@ -15,10 +15,13 @@ function _get_xpauthpath(xpauth_path = "", verbose::Bool = true) # variables. for key in ("XPAUTH_PATH", "XPRESSDIR") if haskey(ENV, key) + path = replace(ENV[key], "\"" => "") # With the default filename - push!(candidates, joinpath(replace(ENV[key], "\"" => ""), XPAUTH)) + push!(candidates, joinpath(path, XPAUTH)) + # in /bin + push!(candidates, joinpath(path, "bin", XPAUTH)) # and without - push!(candidates, replace(ENV[key], "\"" => "")) + push!(candidates, path) end end # Search in `xpress/lib/../bin/xpauth.xpr`. This is a common location on