fix: build on debian 13, without the own lock screen there

This commit is contained in:
Felitendo committed 2026-09-26 21:19:07 +02:00
1 parent e4b76b0eaf
commit f572dfbc3d
7 files changed
+44 -10

No files matched your search

+1 -1
View File
@@ -562,7 +562,7 @@ fu_ui_settings() {
for spec in "${FU_SETTINGS[@]}"; do
IFS='|' read -r scope key type default label choice need only <<< "$spec"
[[ $only == lockers ]] && ! fu_pam_lockers_here && continue
[[ $only == ownlock && ( $FU_DESKTOP == plasma || $FU_DESKTOP == gnome ) ]] && continue
[[ $only == ownlock ]] && ! fu_own_lock_here && continue
# A heading has its label where the key would be.
[[ $scope == group ]] && label="$key" key=''
scopes+=("$scope"); keys+=("$key"); types+=("$type"); defaults+=("$default")
+11 -1
View File
@@ -313,8 +313,18 @@ fu_gnome_extension_disable() {
FU_HYPRLOCK_SNIPPET="$FU_XDG_CONFIG/$FU_NAME/hyprlock.conf"
FU_HYPRLOCK_MARK="# $FU_NAME: what face unlock is doing, at the top"
# fu_own_lock_here
# Whether face-unlock's own lock screen is on offer: where the lock screen is
# a program of its own, and the agent was built with it (Qt 6.10 and newer).
FU_OWN_LOCK=''
fu_own_lock_here() {
[[ $FU_DESKTOP != plasma && $FU_DESKTOP != gnome ]]
[[ $FU_DESKTOP != plasma && $FU_DESKTOP != gnome ]] || return 1
if [[ -z $FU_OWN_LOCK ]]; then
FU_OWN_LOCK=no
"$FU_AGENT" --has-own-lock > /dev/null 2>&1 && FU_OWN_LOCK=yes
fi
[[ $FU_OWN_LOCK == yes ]]
}
# fu_hyprlock_text_on