Kyle Gospodnetich 4aa7fabcd5 fix(gnome): Fix issue with xdg-terminal-exec when used with long commands
chore: Additional bash script cleanup
2023-12-23 09:56:09 -08:00

12 lines
343 B
Bash
Executable File

#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
SUDO_ASKPASS='/usr/bin/ksshaskpass'
elif [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
SUDO_ASKPASS='/usr/libexec/openssh/gnome-ssh-askpass'
fi
export SUDO_ASKPASS