![]() |
Re: [Pre Announce] Shortcut Stash
I am about to release a new version of Shortcut Stash
including fixes for reading bookmarks. Now when a bookmark is in a folder it gets added to the list. Directory listing shows the number of folders and files in the folder. I am also trying to get the description of an application to show in the app list. Anybody has an idea how to read the application description like shown in the App Manager? I'd really like to have that fixed too before releasing a new version. So if someone could help with this I'd really appreciate it. |
Re: [Pre Announce] Shortcut Stash
Ok, couldn't wait to post the new deb since I got the scalable icons fixed.
Also added descriptions for folders. Now it is showing the number of folders and files in that directory. For the applications descriptions I still haven't found a way so I am printing the comment field for those apps which have a proper comment. If someone knows how to get the proper descriptions please let me know. The bookmark in a folder issue is also fixed. Please test and post bug reports. |
Re: [Pre Announce] Shortcut Stash
Finding the application description as displayed in Application Manager won't be straightforward. That comes from the list of packages, which won't match one-to-one with the .desktop launcher icons.
|
Re: [Pre Announce] Shortcut Stash
Quote:
I have experimented with dpkg -l packagename but haven't come up with a desired result. I will continue searching for a solution... |
Re: [Pre Announce] Shortcut Stash
Quote:
In most cases there is a gettext msgid in it, like for the browser it is: weba_ap_web_browser_thumb. I've been searching the correct bindtextdomain for it for ages. So if someone knows what it is and where the .mo -file is located would be most helpful. I thought it was maemo-af-desktop but it wasn't. |
Re: [Pre Announce] Shortcut Stash
HI rooster13,
I do use maemo-af-desktop in my application search widget to read the application comment, as long as there isn't a X-Text-Domain entry in the .desktop file. If there is a X-Text-Domain entry in the desktop file, I use this as the domain name with dgettext. hope this helps. Nicolai |
Re: [Pre Announce] Shortcut Stash
Hi Nicolai,
I think I tried that approach but I have to check this out once more. Maybe there was something wrong with my code. Thank u for this. U don't happen to have small sample code for me to examine? |
Re: [Pre Announce] Shortcut Stash
Sure, this is what I use in my app-search-widget
(feel free to look at the whole source code and steal what you need :-)) Code:
#define DESKTOP_ENTRY_CONFIG_GROUP "Desktop Entry" I hope this helps anyway, feel free to ask if you have any questions Nicolai |
Re: [Pre Announce] Shortcut Stash
Thanks Nicolai!
I will check that. I am using Qt but am sure this piece of code will help. One question I have is, where are the domains for gettext defined? The maemo-af-desktop etc. |
Re: [Pre Announce] Shortcut Stash
Quote:
I found this one in some example code or in the maemo developer guide. Nicolai |
All times are GMT. The time now is 09:41. |
vBulletin® Version 3.8.8