Skip to content

Commit

Permalink
gks_qt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Oct 6, 2022
1 parent 85b578a commit e420852
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/GR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,17 @@ function init(always::Bool = false)
else
haskey(ENV, "GKSwstype") || get!(ENV, "GKSwstype", "gksqt")
if !haskey(ENV, "GKS_QT")
key = if os === :Windows
"PATH"
elseif os === :Darwin
"DYLD_FALLBACK_LIBRARY_PATH"
gks_qt = if os === :Windows
"set PATH=$(GRPreferences.libpath[]) & \"$(GRPreferences.gksqt[])\""
else
"LD_LIBRARY_PATH"
key = if os === :Darwin
"DYLD_FALLBACK_LIBRARY_PATH"
else
"LD_LIBRARY_PATH"
end
"env $key=$(GRPreferences.libpath[]) $(GRPreferences.gksqt[])"
end
ENV["GKS_QT"] = string("env $key=", GRPreferences.libpath[], " ", GRPreferences.gksqt[])
ENV["GKS_QT"] = gks_qt
end
@debug "Artifacts setup" ENV["GKSwstype"] ENV["GKS_QT"]
end
Expand Down

0 comments on commit e420852

Please sign in to comment.