maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Can't write to file from a .desktop file (https://talk.maemo.org/showthread.php?t=48776)

maacruz 2010-06-02 21:45

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.


All times are GMT. The time now is 17:02.

vBulletin® Version 3.8.8