def application_launch_callback(argv, pid, notify_id, files, timestamp): is_terminal = terminal.is_known_terminal_executable(argv[0]) if not is_terminal: svc.launched_application(app_id, pid)
def application_launch_callback(argv, pid, notify_id, files, timestamp): pretty.print_debug(__name__, "Launched", argv, pid, notify_id, files) is_terminal = terminal.is_known_terminal_executable(argv[0]) pretty.print_debug(__name__, argv, "is terminal:", is_terminal) if not is_terminal: svc.launched_application(app_id, pid)