Package list lightdm-gtk-greeter-settings / a68f920 bin / lightdm-gtk-greeter-settings-pkexec
a68f920

Tree @a68f920 (Download .tar.gz)

lightdm-gtk-greeter-settings-pkexec @a68f920raw · history · blame

#!/bin/sh

APP_PATH="/usr/bin/lightdm-gtk-greeter-settings"

# Check for "socket" argument
for i in "$@"; do
  if [[ "$i" == "-s="* ]] || [[ "$i" == "--socket-id="* ]]; then
    pkexec "${APP_PATH}" "$@" || "${APP_PATH}" "$@"
    exit $?
  fi
done

pkexec "${APP_PATH}" "$@"