def open_browser(self): url = self.settings['url'] if url != None: xdg_open = "xdg-open '%s'" % bashQuotes(url) Shell(xdg_open)