|
2010-03-31
, 22:56
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#2
|
|
2010-03-31
, 23:05
|
|
Posts: 60 |
Thanked: 46 times |
Joined on Jan 2010
@ Europe
|
#3
|
[Desktop Entry] Name=recaller Comment=A simple (call) recording widget. Type=python X-Path=recaller.py X-Multiple=true
|
2010-03-31
, 23:48
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#4
|
|
2010-04-05
, 23:16
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#5
|
|
2010-04-05
, 23:28
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#6
|
I've tried searching for a tutorial on desktop entries and come up with nada. Could someone point me towards one?
The Following User Says Thank You to omeriko9 For This Useful Post: | ||
|
2010-04-12
, 22:57
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#7
|
|
2010-04-29
, 20:53
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#8
|
|
2010-05-20
, 19:12
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#9
|
|
2010-05-25
, 23:38
|
Posts: 16 |
Thanked: 0 times |
Joined on Jul 2009
|
#10
|
#!/usr/bin/env python
log_dir = "/home/user/sleepclock/logs/"
log = open(log_dir + "test", "a")
log.write("HIPPOPOTAMUS")
log.close
If I run this script from the command line, there is a file called "test" in /home/user/sleepclock/logs that contains the single word "HIPPOPOTAMUS". However, when I try to run the python script from a .desktop file that contains the following lines:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=writetofile
Type=Application
Exec=/usr/bin/writetofile.py
X-Osso-Type=application/x-executable
There is no file called "test". The writetofile.py script is in the /usr/bin directory. Any ideas why this isn't working when I use a .desktop file?