diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-05 11:09:57 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2012-12-05 11:09:57 +0000 |
commit | d77bf4972dd50d4f5b81662c65632ada3ac7021e (patch) | |
tree | 1f93874ff32fc86d18377e5a9b3b9ac5bf64d9e2 | |
parent | dc6a7b66a751d507a3e45de84c0b002cfb446a8b (diff) | |
parent | 0a1d7c1844dc6104eefe43b38400f3d94868428b (diff) | |
download | ayatana-indicator-messages-d77bf4972dd50d4f5b81662c65632ada3ac7021e.tar.gz ayatana-indicator-messages-d77bf4972dd50d4f5b81662c65632ada3ac7021e.tar.bz2 ayatana-indicator-messages-d77bf4972dd50d4f5b81662c65632ada3ac7021e.zip |
Don't shorten the app id to seven characters. Fixes: https://bugs.launchpad.net/bugs/1086729.
Approved by Gustavo Pichorim Boiko.
-rw-r--r-- | src/im-application-list.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 607b0fc..5a7f768 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -411,8 +411,13 @@ im_application_list_canonical_id (const gchar *id) { gchar *str; gchar *p; + int len; - str = g_strndup (id, strlen (id) - g_str_has_suffix (id, ".desktop") ? 7 : 0); + len = strlen (id); + if (g_str_has_suffix (id, ".desktop")) + len -= 8; + + str = g_strndup (id, len); for (p = str; *p; p++) { |