Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Its not possible to create toast notification as service #13

Open
ericrange opened this issue Sep 6, 2018 · 3 comments
Open

Its not possible to create toast notification as service #13

ericrange opened this issue Sep 6, 2018 · 3 comments

Comments

@ericrange
Copy link

No description provided.

@jmshal
Copy link
Member

jmshal commented Sep 6, 2018

Hi @ericrange,

Would you be able to provide some more detail around the issue?

@ericrange
Copy link
Author

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.

@maciekzieba
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants