|
2010-03-12
, 20:15
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#2
|
[Desktop Entry] Version=1.0.0 Encoding=UTF-8 Name=Ansel A Comment=Digital Darkroom for the N900 Exec=/opt/anselA/anselA.py Icon=anselA X-Icon-path=/usr/share/icons X-Window-Icon=anselA Type=Application X-Osso-Service=com.nokia.ansela X-Osso-Type=application/x-executable StartupWMClass=anselA Name[en_US]=anselA.desktop
|
2010-03-12
, 20:22
|
|
Posts: 100 |
Thanked: 240 times |
Joined on Feb 2010
@ The South Pole O.o
|
#3
|
FYI,
My .desktop file in
src/usr/share/applications/hildon/anselA.desktop
Code:[Desktop Entry] Version=1.0.0 Encoding=UTF-8 Name=Ansel A Comment=Digital Darkroom for the N900 Exec=/opt/anselA/anselA.py Icon=anselA X-Icon-path=/usr/share/icons X-Window-Icon=anselA Type=Application X-Osso-Service=com.nokia.ansela X-Osso-Type=application/x-executable StartupWMClass=anselA Name[en_US]=anselA.desktop
The Following User Says Thank You to m2cm2c For This Useful Post: | ||
|
2010-03-12
, 20:36
|
|
Posts: 100 |
Thanked: 240 times |
Joined on Feb 2010
@ The South Pole O.o
|
#4
|
The Following User Says Thank You to m2cm2c For This Useful Post: | ||
|
2010-03-12
, 20:53
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#5
|
or from the terminal make the file executable
chmod +x /opt/anselA/anselA.py
|
2010-03-12
, 21:10
|
|
Posts: 100 |
Thanked: 240 times |
Joined on Feb 2010
@ The South Pole O.o
|
#6
|
Should have mentioned that I did that, through x-term not through a post-install script.
um wow, Exec=osso-xterm "python /opt/anselA/anselA.py"
in the .desktop file crashed the device, I'm rebooting now.
ok, Both of those Launched the application correctly, but it still crashed and did not throw out an error anywhere
Not sure what the reboot was... I'm ignoring it since I was running quite a few things simultaneousness, and was editing everything through SSH.
|
2010-03-12
, 21:17
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#7
|
|
2010-03-12
, 21:23
|
|
Posts: 100 |
Thanked: 240 times |
Joined on Feb 2010
@ The South Pole O.o
|
#8
|
copied and pasted that into nano, saved and ran.
It seems to crash (go out of memory and turn black momentarily) a bit faster now, ~1second instead of ~4secs.
m2cm2c, do you know if I can print kernel or python errors? so I can debug this?
The Following User Says Thank You to m2cm2c For This Useful Post: | ||
|
2010-03-12
, 21:40
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#9
|
|
2010-03-13
, 03:34
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#10
|
It's a PyQt Application, and I packaged it with Py2Deb (following these directions, couldn't seem to get PyPackager to work). After a few tries I worked out my dependencies issues and it was available in Application Manager.
The Install went flawlessly, but when I run the application from the ".desktop shortcut" (if that's what it's called) It starts to load, changes the title bar, and after 4seconds it crashes without GUI Error.
Strangly, enough when I run, from the installed directory:
It works as expected, and throws no errors to xTerm.
My question is:
Is there a way to capture stderr from a desktop link?
Is there a way to print out past kernel/system errors?
I'm currently not using any post install scripts, I'm fairly sure that's not right, but since I can't capture an error log I don't know where to start.
Last edited by lostinmirkwood; 2010-03-12 at 21:06.