gen2brain / beeep

Go cross-platform library for sending desktop notifications, alerts and beeps
BSD 2-Clause "Simplified" License
1.43k stars 89 forks source link

Remove unneeded profile execution #43

Closed Altoid0 closed 3 years ago

Altoid0 commented 3 years ago

Hello there! I was working on a project of mine and came across some abnormal behavior using beeep's windows notify feature. Running a compiled binary using the beeep.Notify function I noticed that the system's PowerShell profile was being executed when it shouldn't have been. After some hunting, I figured out that beeep was using PowerShell commands for some functionality but without specifying the -NoProfile argument. As the goal of the line was to simply capture the output of the Get-StartApps command I figured it wouldn't hurt to add in the NoProfile arg and would prevent any unexpected outputs/behavior.

gen2brain commented 3 years ago

Merged, thanks!