![]() |
2010-11-15
, 07:08
|
|
Posts: 319 |
Thanked: 221 times |
Joined on Jan 2010
@ Finland
|
#32
|
![]() |
2010-11-15
, 09:57
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#33
|
The Following User Says Thank You to pelago For This Useful Post: | ||
![]() |
2010-11-15
, 12:43
|
|
Posts: 319 |
Thanked: 221 times |
Joined on Jan 2010
@ Finland
|
#34
|
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.
![]() |
2010-11-15
, 20:56
|
|
Posts: 319 |
Thanked: 221 times |
Joined on Jan 2010
@ Finland
|
#35
|
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.
![]() |
2010-11-15
, 22:17
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#36
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
![]() |
2010-11-15
, 22:36
|
|
Posts: 319 |
Thanked: 221 times |
Joined on Jan 2010
@ Finland
|
#37
|
![]() |
2010-11-15
, 23:05
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#38
|
#define DESKTOP_ENTRY_CONFIG_GROUP "Desktop Entry" #define TEXTDOMAIN_KEY "X-Text-Domain" #define NAME_KEY "Name" #define COMMENT_KEY "Comment" static gchar* _retrieve_app_comment(GKeyFile* key_file) { if(g_key_file_has_key(key_file, DESKTOP_ENTRY_CONFIG_GROUP, TEXTDOMAIN_KEY, NULL) && g_key_file_has_key(key_file, DESKTOP_ENTRY_CONFIG_GROUP, COMMENT_KEY, NULL)) { gchar* text_domain = g_key_file_get_string(key_file, DESKTOP_ENTRY_CONFIG_GROUP, TEXTDOMAIN_KEY, NULL); gchar* app_comment_key = g_key_file_get_string(key_file, DESKTOP_ENTRY_CONFIG_GROUP, COMMENT_KEY, NULL); gchar* app_comment = g_strdup(dgettext(text_domain, app_comment_key)); g_free(text_domain); if(g_strcmp0(app_comment, app_comment_key) == 0) { g_free(app_comment); app_comment = NULL; } g_free(app_comment_key); return app_comment; } else if(g_key_file_has_key(key_file, DESKTOP_ENTRY_CONFIG_GROUP, COMMENT_KEY, NULL)) { gchar* app_comment = g_key_file_get_string(key_file, DESKTOP_ENTRY_CONFIG_GROUP, COMMENT_KEY, NULL); gchar* comment = g_strdup(dgettext(GETTEXT_PACKAGE, app_comment)); g_free(app_comment); return comment; } return NULL; }
![]() |
2010-11-16
, 07:49
|
|
Posts: 319 |
Thanked: 221 times |
Joined on Jan 2010
@ Finland
|
#39
|
![]() |
2010-11-16
, 08:56
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#40
|
One question I have is, where are the domains for gettext defined? The maemo-af-desktop etc.
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.