List Apps For Nokia N9



  • Hello All,

    I want to list all the apps Installed in my Nokia N9 using Qt. I used something like dpkg -l to get the name of the apps installed in my Nokia N9, which works good.

    But the data there is not at all formatted and i am also not able to get the icons. Can any body help me format the output i get when i execute dpkg -l and how i can get the icons of the application.

    Basically i want to show the list of the installed apps in one of my application.

    I am very new to Meego and linux please guide me how i can move forward.



  • You can see the list of all installed packages my executing the dpkg with the following argument:

    @dpkg --get-selections@

    The icons of each installed app package are stored as files so you just have to locate and open them. The path to the icons should be /usr/share/icons/hicolor/64x64/apps or something similar.



  • Hello lean.anavi

    Thanks for your reply, i am trying to navigate to /usr/share/icons but i am getting a permission denied error message.

    How i can solve that ??



  • [quote author="tattoo" date="1333681036"]Hello lean.anavi

    Thanks for your reply, i am trying to navigate to /usr/share/icons but i am getting a permission denied error message.

    How i can solve that ??[/quote]

    You have to run your application under another user or to change the permissions of the directory but I am afraid that that due to security issues both solutions might be impossible to implement. Have a look at this article to learn more about "permission in Linux":https://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions.



  • SO do you mean there is no way i can get the icons. Please guide me if there is any other way i can do that ??



  • You can get your list of installed apps listing the /opt directory :)



  • Hello Jose,

    Thanks for your reply i am able to list all the apps but also want to get the icon associated with them.

    And i am not able to get that, can you guide me how i can do that ??



  • There must be some "API" to access the information stored on the desktop files (that is where the developer assigns what icon the application will show in the list of programs). The deb files also include icons (encoded in control files) used by the package managers and may keep them around after the installation.

    Your application and the default "user" should have, at least, read access to /usr/share/applications where you will find the .desktop files and /usr/share/icons/hicolor/80x80/apps where applications using Qt Creator will install the icons by default.


  • Moderators

    If you parse the .desktop file for each installed application, there's an Icon= line which should be the path to the icon, or a system-default icon name, which is available in the /usr/share/themes/... directory tree.



  • It seems that "this thread":http://www.developer.nokia.com/Community/Discussion/showthread.php?234131-List-All-Application-of-Meego is for the same question...

    I would really like to create a bridge of some sort between these forums... :)


  • Moderators

    [quote author="fcrochik" date="1335298521"]It seems that "this thread":http://www.developer.nokia.com/Community/Discussion/showthread.php?234131-List-All-Application-of-Meego is for the same question...

    I would really like to create a bridge of some sort between these forums... :)[/quote]

    You gave a link... looks like you just did, in the most basic sense. :)



  • [quote author="mlong" date="1335300579"]You gave a link... looks like you just did, in the most basic sense. :)
    [/quote]
    Yes, I did indeed... I am bridging the gap! :)
    I would really prefer some automatic way or, even better, clear distinction between the two forums...

    (BTW: Hi there! Long time no seeing... QtDD again this year?)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.