Re: Can't write to file from a .desktop file
Quote:
Originally Posted by flp
(Post 668235)
When i tried calling the desktop file from x-term (not in root shell) i get this error:
File "usr/bin/writetofile.py", line 5, in <module>
log = open(log_dir + "test", "a")
IOError: [Errno 13] Permission denied: '/home/user/sleepclock/logs/test'
Could this be the problem that's occurring when i try to run the script from the icon in the extras menu? And, if so, how do i fix it?
|
Probably a "test" file owned by root already exists, preventing your script form overwriting it when run as user.
Delete everything in the logs directory and try again.
|