ayguci-pkexec 275 B

1234567891011121314
  1. #!/bin/bash
  2. APP_PATH="/usr/milis/ayguci/gui/ayguci-gui.py"
  3. # Check for "socket" argument
  4. for i in "$@"; do
  5. if [[ "$i" == "-s="* ]] || [[ "$i" == "--socket-id="* ]]; then
  6. pkexec "${APP_PATH}" "$@" || "${APP_PATH}" "$@"
  7. exit $?
  8. fi
  9. done
  10. pkexec "${APP_PATH}" "$@"