Package list lightdm-gtk-greeter-settings / scrub-obsolete/main bin / lightdm-gtk-greeter-settings-pkexec
scrub-obsolete/main

Tree @scrub-obsolete/main (Download .tar.gz)

lightdm-gtk-greeter-settings-pkexec @scrub-obsolete/mainraw · 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}" "$@"