Reply
Thread Tools
Posts: 27 | Thanked: 59 times | Joined on Jan 2010 @ Munich, Germany
#1
Hi fellow devs!

I'm working on a tool which provides a quick application search by filtering a list of all applications (Similar to the KDE4 or Win7 application search). It's written in Python with Qt4.
The GUI/filtering stuff already works but I got problems to properly build up the application list. My approach is to read the information from the .desktop-Files in /usr/share/applications/hildon/ . With the dbus-servicename (X-Osso-Service=) the program can be started with osso.Application.application_top(), which unfortunatly works not always, but still in most cases.
My main problem is right now, that I don't know how to get the properly localized application names. Let me explain that on an example:

This is the osso_calculator.desktop file:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=calc_ap_calculator
Comment=calc_ap_calculator_thumb
Exec=/usr/bin/osso_calculator
Icon=tasklaunch_calculator
X-Icon-path=/usr/share/pixmaps/
X-Window-Icon=tn-bookmarks-link
X-Window-Icon-Dimmed=tn-bookmarks-link-dimmed
X-HildonDesk-ShowInToolbar=true
X-Osso-Service=osso_calculator
X-Osso-Type=application/x-executable
X-Text-Domain=osso-calculator-ui
The application name is defined by calc_ap_calculator. But where is this variable defined? Is there a osso function or some command to get this?

I also would be thankful for comments and suggestions on the general approach!


-
Sebastian
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:14.