Skip to content
This repository was archived by the owner on Dec 24, 2017. It is now read-only.

Commit c945938

Browse files
committed
mime: Fix various issues with MimeType action methods
1 parent 6d07b51 commit c945938

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

xdg/mime.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def bestApplication(self):
669669
on the file system. This should be done separately, or you can use
670670
the convenience function bestAvailableApplication()
671671
"""
672-
return next(self.bestApplications(), None)
672+
return next(self.applications(), None)
673673

674674
def availableApplications(self):
675675
"""
@@ -681,14 +681,14 @@ def availableApplications(self):
681681
for app in self.applications():
682682
desktop = getDesktopFilePath(app)
683683
if desktop:
684-
yield desktop
684+
yield app
685685

686686
def bestAvailableApplication(self):
687687
"""
688688
Same as bestApplication(), but checks if the .desktop files are
689689
available on the file system.
690690
"""
691-
return next(self.bestApplications(), None)
691+
return next(self.availableApplications(), None)
692692

693693
def defaultApplication(self):
694694
from . import actions

0 commit comments

Comments
 (0)