![]() |
2010-02-22
, 15:32
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#132
|
Thanks Fatalsaint, again!
Got the (hashkey not working)! /usr/bin/env python
at the beginning
assuming the Exec=python /opt/healthcheck/healthcheck.py is for the .desktop file? (replace current line?)
(the icon loads, and it looks like the application loads, so not sure the error is there.)
/opt/healthcheck/healthcheck.py *or* cd /opt/healthcheck/ ./healthcheck.py
python /opt/healthcheck/healthcheck.py *or* cd /opt/healthcheck python healthcheck.py *or* Exec=python /opt/healthcheck/healthcheck.py
![]() |
2010-02-22
, 16:05
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#133
|
![]() |
2010-02-22
, 16:21
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#134
|
Ok, tried again with the exec python part - doesnt make a difference
import osso osso_c = osso.Context("healthcheck", "666", True)
The Following 3 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-02-22
, 16:27
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#135
|
With X-Osso-Service present in your desktop file, changing the Exec field there won't make a difference. Edit /usr/share/dbus-1/services/HealthCheck.service instead.
If the problem is that it crashes after some seconds when starting it from the menu (starting it from the terminal shouldn't cause it to crash) you need to initialize an osso.Context since you're using X-Osso-Service.
Try something like:
If that fails, too, then you can try replacing the previous X-Osso-Type line with X-Osso-Type=application/x-pythonCode:import osso osso_c = osso.Context("healthcheck", "666", True)
If that also fails, comment out the X-Osso-Service line in your desktop file. Of course, only try all this if your program doesn't crash when started from the terminal.
![]() |
2010-02-22
, 16:30
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#136
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-02-22
, 16:39
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#137
|
![]() |
2010-02-22
, 16:52
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#138
|
import osso
osso_c = osso.Context("healthcheck", "666", True)
![]() |
2010-02-22
, 17:17
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#139
|
X-Osso-Service=com.nokia.healthcheck
X-Osso-Type=application/x-executable
![]() |
2010-02-22
, 17:29
|
|
Posts: 844 |
Thanked: 521 times |
Joined on Jan 2009
@ UK southampton
|
#140
|
The Following User Says Thank You to casper27 For This Useful Post: | ||
Got the (hashkey not working)! /usr/bin/env python
at the beginning
assuming the Exec=python /opt/healthcheck/healthcheck.py is for the .desktop file? (replace current line?)
(the icon loads, and it looks like the application loads, so not sure the error is there.)
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -