Coding for Nokia 770 using Python – Misc Notes
Tuesday, February 14th, 2006It is time to make a post about some great input that I’ve gotten from the readers of my blog. Thanks to everyone who has made comments. Keep on commenting people.
Ok, first of all thanks to Kasper Souren for pointing out that if you are having “permission denied” problems, or otherwise problems running the downloaded scripts, you sould do a “chmod +x *.py” in the folder where you have the script in.
Also big thanks to Martin N for giving a nice example on how to make the python script fully hildonized by adding it to the start menu and also how to get the icon to the task list while your app is running. Here’s what he wrote…
Hi Teemu, I’ve found a solution in the Maemo SDK Tutorial:
Based on this I created the following two files for your example:
uitest.desktop:
[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=UITest Exec=/home/user/python/uitest.py X-Osso-Service=example.uitest Icon=qgn_list_gene_default_appexample.uitest.service:
[D-BUS Service] Name=example.uitest Exec=/home/user/python/uitest.py…and created those links:
ln -s /home/user/python/uitest.desktop \ /var/lib/install/etc/others-menu/extra_applications/\ uitest.desktop ln -s /home/user/python/example.uitest.service \ /var/lib/install/usr/lib/dbus-1.0/services/\ example.uitest.serviceActually you don’t need the desktop file to have an icon in the task list, but I think it makes the hildonization complete.
![]()
Edit: Please note that the version parameter in the .desktop file refers to the desktop entry specification version instead of the application version. Thanks to Karo for pointing this out.



