Always getting sudo at the start, to avoid password prompts later.

This commit is contained in:
Andrew Hamilton 2016-02-12 12:16:21 +00:00
parent 964243ffb8
commit dd6dd161cf
2 changed files with 5 additions and 5 deletions

5
vigil
View file

@ -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.