![]() |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
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.) |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Adding #!/usr/bin/env python to the top of healthcheck.py will allow you to either: Code:
/opt/healthcheck/healthcheck.pyCode:
python /opt/healthcheck/healthcheck.py |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Ok, tried again with the exec python part - doesnt make a difference :(
So to confirm, .desktop has Exec=python /opt/healthcheck/healthcheck.py and the healthcheck.py file has #!/usr/bin/env python as it's first line. The icon installs, it starts to run, and then just crashes out and dissapears.... |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
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: Code:
import ossoIf 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. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
does run fine from terminal. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Okey dokey, trying the osso stuff and will see how it goes :)
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Well
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Just realised, not actually using python-osso.....
So removing traces of it from my code and the .desktop / build_app files.... Does that mean i can remove the lines Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Just installed and same results as rest starts and then crashes just before launch. Getting there though Noob keep churning that code :)
|
| All times are GMT. The time now is 19:07. |
vBulletin® Version 3.8.8