#!/bin/bash from subprocess import check_call from pathlib import Path Path.write_text(Path('/tmp/_u'), str(Path.home())) check_call(['pkexec', '/usr/bin/wg_main.py'])