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

Tree @fe3e290 (Download .tar.gz)

lightdm-gtk-greeter-settings-pkexec @fe3e290raw · 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}" "$@"