notify-send not work as CGI script?
I write a cgi script in python just send a notification command,but that can not work for me.
Code:
#!/usr/bin/env python And Code:
djstava@Gateway:~/test$ notify-send 'hello' This is the error. Code:
djstava@Gateway:/tmp$ cat notify-error |
I can't actually see what is in your CODE tags because I am on my phone, but the problem is almost certainly the fact that the script is not being executed as the user with the X session, but rather the user your web server is setup to run under.
The problem is, you certainly don't want the web server running under your normal user account either. |
Quote:
Code:
os.system("DISPLAY=:0.0; notify-send 'hello'") |
All times are GMT -5. The time now is 01:16 PM. |