Package list lightdm-gtk-greeter-settings / debian/1.2.2-2 bin / lightdm-gtk-greeter-settings-pkexec
debian/1.2.2-2

Tree @debian/1.2.2-2 (Download .tar.gz)

lightdm-gtk-greeter-settings-pkexec @debian/1.2.2-2raw · history · blame

#!/bin/bash

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}" "$@"