local filename = geany.filename() local browser = geany.appinfo()["tools"]["browser"] ok, msg = geany.launch(browser, filename) if not ok then geany.message("Error", msg) end