Skip to content

Commit

Permalink
add parameter "-NoProfile" to powershell command (#41)
Browse files Browse the repository at this point in the history
Adds the command line parameter `-NoProfile` to the powershell command to avoid error messages on some systems and faster execution.
  • Loading branch information
hhaensel committed Aug 28, 2023
1 parent f2c0b4c commit f993e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_powershell.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f993e87

Please sign in to comment.