#!/bin/bash

# Check if GUI is already started
if ! pgrep -f 'python3 '.*iso_constructor &>/dev/null; then
    pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR python3 '/usr/lib/iso_constructor/main.py' $@
fi
exit 0
