UnicodePlots: update hack for png
This commit is contained in:
parent
5d8acf5189
commit
34c22970f2
@ -265,7 +265,12 @@ function png(plt::Plot{UnicodePlotsBackend}, fn::AbstractString)
|
||||
elseif Sys.islinux()
|
||||
run(`clear`)
|
||||
gui(plt)
|
||||
run(`import -window $(ENV["WINDOWID"]) $fn`)
|
||||
win = if "WINDOWID" in keys(ENV)
|
||||
ENV["WINDOWID"]
|
||||
else
|
||||
readchomp(`xdotool getactivewindow`)
|
||||
end
|
||||
run(`import -window $win $fn`)
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user