Skip to content

Commit

Permalink
feat: add askpass config (ublue-os#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Apr 18, 2024
1 parent 1df33d4 commit 675358e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"libgda",
"libratbag-ratbagd",
"nautilus-gsconnect",
"openssh-askpass",
"yaru-theme"
],
"kinoite": [
Expand Down
11 changes: 11 additions & 0 deletions system_files/shared/usr/etc/profile.d/askpass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/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

0 comments on commit 675358e

Please sign in to comment.