コード例 #1
0
ファイル: utils.py プロジェクト: sagivmalihi/kupfer
def spawn_terminal(workdir=None, screen=None):
	" Raises SpawnError "
	term = terminal.get_configured_terminal()
	notify = term["startup_notify"]
	app_id = term["desktopid"]
	argv = term["argv"]
	desktop_launch.spawn_app_id(app_id, argv, workdir, notify, screen)
コード例 #2
0
def spawn_terminal(workdir=None, screen=None):
    " Raises SpawnError "
    term = terminal.get_configured_terminal()
    notify = term["startup_notify"]
    app_id = term["desktopid"]
    argv = term["argv"]
    desktop_launch.spawn_app_id(app_id, argv, workdir, notify, screen)
コード例 #3
0
ファイル: utils.py プロジェクト: sagivmalihi/kupfer
def spawn_async_notify_as(app_id, argv):
	"""
	Spawn argument list @argv and startup-notify as
	if application @app_id is starting (if possible)

	raises SpawnError
	"""
	desktop_launch.spawn_app_id(app_id, argv , None, True)
コード例 #4
0
def spawn_async_notify_as(app_id, argv):
    """
	Spawn argument list @argv and startup-notify as
	if application @app_id is starting (if possible)

	raises SpawnError
	"""
    desktop_launch.spawn_app_id(app_id, argv, None, True)
コード例 #5
0
ファイル: utils.py プロジェクト: tuxcanfly/kupfer
def spawn_in_terminal(argv, workdir=None):
	term = terminal.get_configured_terminal()
	notify = term["startup_notify"]
	_argv = list(term["argv"])
	if term["exearg"]:
		_argv.append(term["exearg"])
	_argv.extend(argv)
	desktop_launch.spawn_app_id(term["desktopid"], _argv , workdir, notify)
コード例 #6
0
def spawn_in_terminal(argv, workdir=None):
    " Raises SpawnError "
    term = terminal.get_configured_terminal()
    notify = term["startup_notify"]
    _argv = list(term["argv"])
    if term["exearg"]:
        _argv.append(term["exearg"])
    _argv.extend(argv)
    desktop_launch.spawn_app_id(term["desktopid"], _argv, workdir, notify)
コード例 #7
0
ファイル: utils.py プロジェクト: tuxcanfly/kupfer
def spawn_terminal(workdir=None):
	term = terminal.get_configured_terminal()
	notify = term["startup_notify"]
	app_id = term["desktopid"]
	argv = term["argv"]
	desktop_launch.spawn_app_id(app_id, argv, workdir, notify)