aboutsummaryrefslogtreecommitdiff
path: root/src/media-player-list.vala
diff options
context:
space:
mode:
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;