Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    appsearch v0.1 - Application Name Issue

    Reply
    BlueGene | # 1 | 2010-01-11, 12:45 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout