From dd6dd161cfa8d2c924db543988dc6bd77fa3824c Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Fri, 12 Feb 2016 12:16:21 +0000 Subject: [PATCH] Always getting sudo at the start, to avoid password prompts later. --- BUGS | 5 +++-- vigil | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BUGS b/BUGS index b8fd291..c5c5b2b 100644 --- a/BUGS +++ b/BUGS @@ -1,8 +1,6 @@ Current - Within the sandbox sudo is not working for tools. <- Sudo is working now but its always asking for a password. -- If a tool runs a script that needs sudo, the password prompt is garbling - the screen and stopping input. - When paging the summary window, with the bottom scroll bar showing, the cursor line drifts up or down a row. @@ -218,6 +216,9 @@ Fixed - If vigil is started with eveything up-to-date the up-to-date message never appears. - python-coverage is failing in the sub-directories of a project. +- If a tool runs a script that needs sudo, the password prompt is garbling + the screen and stopping input. + <- Now vigil always gets sudo. Won't fix diff --git a/vigil b/vigil index 67272ae..fc0b99e 100755 --- a/vigil +++ b/vigil @@ -1177,9 +1177,8 @@ def check_arguments(): if __name__ == "__main__": root_path, worker_count, is_sandboxed, editor_command = check_arguments() - if is_sandboxed: - subprocess.call(["sudo", "-p", "Vigil needs sudo to create the filesy" - "stem sandbox... [sudo] password for %u: ", "true"]) + subprocess.call(["sudo", "-p", "Vigil needs sudo to run any script that " + "needs sudo... [sudo] password for %u: ", "true"]) with terminal.console_title("vigil: " + os.path.basename(root_path)): manage_cache(root_path) with chdir(root_path): # FIX: Don't change directory if possible.