def open_cache_folder(self, btn): try: subprocess.call(('xdg-open', self.app.conf['song-dir'], )) except Exception as e: print(e) Widgets.error(self.app, _('Failed to call `xdg-open` command'), str(e))