diff --git a/src/_powershell.jl b/src/_powershell.jl index 1c5edfa..ea13d13 100644 --- a/src/_powershell.jl +++ b/src/_powershell.jl @@ -44,7 +44,7 @@ function _powershell(img::AbstractMatrix{<:Colorant}) getfile = `\$file = get-item\(\"$(path_png)\"\)\;` getimg = `\$img = \[System.Drawing.Image\]::Fromfile\(\$file\)\;` copyimg = `\[System.Windows.Forms.Clipboard\]::SetImage\(\$img\)\;` - cmd = `powershell $addtype $adddrawing $getfile $getimg $copyimg` + cmd = `powershell -NoProfile $addtype $adddrawing $getfile $getimg $copyimg` run(cmd) end end