Skip to content

Commit

Permalink
chore: always use /usr/bin/ksshaskpass as SUDO_ASKPASS
Browse files Browse the repository at this point in the history
  • Loading branch information
nisel11 committed Dec 18, 2024
1 parent ac1a17f commit b95c99c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions system_files/shared/etc/profile.d/askpass.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/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
SUDO_ASKPASS='/usr/bin/ksshaskpass'
export SUDO_ASKPASS

0 comments on commit b95c99c

Please sign in to comment.