Example #1
0
def _update_alternative(*args):
	command = __kupfer_settings__["command"]
	exearg = __kupfer_settings__["exearg"]
	argv = utils.argv_for_commandline(command)
	if not argv or not utils.lookup_exec_path(argv[0]):
		return
	plugin_support.register_alternative(__name__, 'terminal', 'custom1',
			name=_("Custom Terminal"),
			argv=argv,
			exearg=exearg,
			desktopid="",
			startup_notify=True)
def _is_valid_terminal(term_dict):
	if len(term_dict["argv"]) < 1:
		return False
	exe = term_dict["argv"][0]
	return bool(utils.lookup_exec_path(exe))
Example #3
0
def _is_valid_terminal(term_dict):
    if len(term_dict["argv"]) < 1:
        return False
    exe = term_dict["argv"][0]
    return bool(utils.lookup_exec_path(exe))