Skip to content

Commit

Permalink
add another -NoProfile (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Aug 28, 2023
1 parent f993e87 commit 42d5033
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 @@ -12,7 +12,7 @@ function _powershell()
addtype = `Add-Type -AssemblyName System.Windows.Forms\;`
getimg = `\$img=\[Windows.Forms.Clipboard\]::GetImage\(\)\;`
saveimg = `if \(\$img -ne \$null\)\{\$img.Save\(\"$(path_png)\"\)\}`
cmd = `powershell $addtype $getimg $saveimg`
cmd = `powershell -NoProfile $addtype $getimg $saveimg`
run(cmd)

# Paste from clipboard
Expand Down

0 comments on commit 42d5033

Please sign in to comment.