Remove sudo

This commit is contained in:
jeffser 2024-10-09 12:49:02 -06:00
parent 57184f0a5c
commit 9f4b6faf28

View File

@ -440,8 +440,6 @@ def run_script_response(self, dialog, task, script, language_name):
script = ';\n'.join(script)
script += '; echo "\n🦙 {}"'.format(_('Script exited'))
if language_name == 'bash':
script = re.sub(r'(?m)^\s*sudo', 'pkexec', script)
if shutil.which('flatpak-spawn') and language_name == 'bash':
sandbox = True
try: