Skip to content

Commit 845e656

Browse files
committed
Use sDEVICE=display in unix as well.
1 parent a67970e commit 845e656

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ghost/ghost_funs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ Display PostScript using Ghostscript's native window (x11 on Linux, aqua on macO
664664
Blocks until the viewer window is closed.
665665
"""
666666
function psview(ps_data::Union{String, AbstractVector{UInt8}}; dpi::Int=300)
667-
device = Sys.islinux() ? "x11" : "aqua"
668-
args = ["gs", "-dNOPAUSE", "-dQUIET", "-sDEVICE=$(device)", "-r$(dpi)"]
667+
#device = Sys.islinux() ? "x11" : "aqua"
668+
args = ["gs", "-dNOPAUSE", "-dQUIET", "-sDEVICE=display", "-r$(dpi)"]
669669
_gs_session(args, inst -> begin
670670
_gs_run_ps_str(inst, ps_data, () -> "")
671671
exit_code = Ref{Cint}(0)

0 commit comments

Comments
 (0)