aboutsummaryrefslogtreecommitdiff
path: root/src/media-player-list.vala
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-04-03 22:16:01 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-04-03 22:16:01 -0400
commite341f4f758fc704ecbc26cd30b96782afa5d54e6 (patch)
treef41f02da4259d525aa07ec783579c772e97c41c6 /src/media-player-list.vala
parentb5d24eeed9528525861d7a7c185327a5e19c7bb7 (diff)
downloadayatana-indicator-sound-e341f4f758fc704ecbc26cd30b96782afa5d54e6.tar.gz
ayatana-indicator-sound-e341f4f758fc704ecbc26cd30b96782afa5d54e6.tar.bz2
ayatana-indicator-sound-e341f4f758fc704ecbc26cd30b96782afa5d54e6.zip
Append ".desktop" to the desktop entries reported from MPRIS
This is the format that GDesktopAppInfo expects. This means that the apps will be reffered to as app.desktop in gsettings, which is consistent with how others are doing it (indicator-messages, unity, gnome shell). Backwards compatibility with old settings keys is maintained.
Diffstat (limited to 'src/media-player-list.vala')
-rw-r--r--src/media-player-list.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media-player-list.vala b/src/media-player-list.vala
index 3fa08f3..73f21ce 100644
--- a/src/media-player-list.vala
+++ b/src/media-player-list.vala
@@ -46,7 +46,7 @@ public class MediaPlayerList {
if (player == null) {
message (" Really.");
- var appinfo = new DesktopAppInfo (desktop_id + ".desktop");
+ var appinfo = new DesktopAppInfo (desktop_id.has_suffix (".desktop") ? desktop_id : desktop_id + ".desktop");
if (appinfo == null) {
warning ("unable to find application '%s'", desktop_id);
return null;