|
|
@ -1,12 +1,18 @@
|
|
|
|
|
|
|
|
import logging
|
|
|
|
import subprocess
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger("FirstSetup::Processor")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Processor:
|
|
|
|
class Processor:
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, config: 'Config'):
|
|
|
|
def __init__(self, config: 'Config'):
|
|
|
|
self.__config = config
|
|
|
|
self.__config = config
|
|
|
|
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
def run(self):
|
|
|
|
|
|
|
|
logger.info(f"Spawning processor with config: {self.__config.get_str()}")
|
|
|
|
|
|
|
|
|
|
|
|
proc = subprocess.run(
|
|
|
|
proc = subprocess.run(
|
|
|
|
["pkexec", "vanilla-first-setup-processor", self.__config.get_str()],
|
|
|
|
["pkexec", "vanilla-first-setup-processor", self.__config.get_str()],
|
|
|
|
check=True
|
|
|
|
check=True
|
|
|
|