Always getting sudo at the start, to avoid password prompts later.
This commit is contained in:
parent
964243ffb8
commit
dd6dd161cf
2 changed files with 5 additions and 5 deletions
5
vigil
5
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue