toast
toast copied to clipboard
Its not possible to create toast notification as service
Hi @ericrange,
Would you be able to provide some more detail around the issue?
its windows thing. a service dont have access to a active window user session. its possible but it needs some windows-dll magic :( the toast notification apears if you start the program as a user. but not, in a service context.
Add this line before Push()
:
os.Setenv("PATH", "C:\\Windows\\System32\\WindowsPowershell\\v1.0")
If process is run as a Windows service then you PATH
env is empty