View Single Post
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#216
Think I found a bug:
After watching a video with the default player, the title was still displayed after player was closed. Reboot emptied the line.

Still struggling with the python-script for uptime here.
My desktop is a Win7 and I used notepad++ for creating this script
Code:
#!/usr/bin/python
import datetime
seconds = int(float(open('/proc/uptime').read().split()[0]))
print str(datetime.timedelta(0, seconds))[:-3]
Coding was set to ANSI and I simply saved as python. Then copied it to /home/user, became root and tried
Code:
chmod +x /home/user/uptime.py
But got "operation not permitted". Where did I fail?
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member

Last edited by Win7Mac; 2012-10-07 at 15:13.