Publish tool cleanup and Framework monitoring refinements
This commit is contained in:
@@ -96,6 +96,7 @@ installed_base() {
|
||||
}
|
||||
|
||||
show_status() {
|
||||
local enabled=1
|
||||
if ! rpm -q kscreenlocker >/dev/null 2>&1; then
|
||||
printf 'KScreenLocker is not installed.\n'
|
||||
return 1
|
||||
@@ -103,18 +104,16 @@ show_status() {
|
||||
|
||||
if is_workaround_package -q kscreenlocker; then
|
||||
printf 'Fingerprint workaround: enabled\n'
|
||||
printf 'Installed package: kscreenlocker-%s.%s\n' \
|
||||
"$(installed_value '%{EVR}')" "$(installed_value '%{ARCH}')"
|
||||
printf 'Based on Fedora package: kscreenlocker-%s\n' "$(installed_base)"
|
||||
elif is_legacy_workaround; then
|
||||
printf 'Fingerprint workaround: enabled (legacy unmanaged build)\n'
|
||||
printf 'Installed package: kscreenlocker-%s.%s\n' \
|
||||
"$(installed_value '%{EVR}')" "$(installed_value '%{ARCH}')"
|
||||
printf 'Based on Fedora package: kscreenlocker-%s\n' "$(installed_base)"
|
||||
else
|
||||
enabled=0
|
||||
printf 'Fingerprint workaround: disabled\n'
|
||||
printf 'Installed package: kscreenlocker-%s.%s\n' \
|
||||
"$(installed_value '%{EVR}')" "$(installed_value '%{ARCH}')"
|
||||
fi
|
||||
printf 'Installed package: kscreenlocker-%s\n' \
|
||||
"$(installed_value '%{EVR}.%{ARCH}')"
|
||||
if (( enabled )); then
|
||||
printf 'Based on Fedora package: kscreenlocker-%s\n' "$(installed_base)"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: plasma-fingerprint-workaround
|
||||
Version: 0.1.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Opt-in patched KScreenLocker for fingerprint recovery after suspend
|
||||
|
||||
License: MIT
|
||||
@@ -51,6 +51,9 @@ install -D -m 0644 %{SOURCE3} \
|
||||
%{_datadir}/plasma-fingerprint-workaround/payload.conf
|
||||
|
||||
%changelog
|
||||
* Sat Sep 12 2026 fedora-tools contributors - 0.1.0-5
|
||||
- Simplify status queries and extend invalid-command tests
|
||||
|
||||
* Sat Sep 12 2026 fedora-tools contributors - 0.1.0-4
|
||||
- Update the opt-in payload to Fedora KScreenLocker 6.7.5
|
||||
|
||||
|
||||
@@ -8,10 +8,19 @@ payload_config=$2
|
||||
bash -n "$controller"
|
||||
"$controller" --help | grep -q '^ .* enable \[--rpm PATH\] \[--force\] \[--yes\]$'
|
||||
|
||||
if "$controller" unknown-command >/dev/null 2>&1; then
|
||||
printf 'Unknown command unexpectedly succeeded.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
reject() {
|
||||
if "$controller" "$@" >/dev/null 2>&1; then
|
||||
printf 'Invalid invocation unexpectedly succeeded: %s\n' "$*" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
reject
|
||||
reject unknown-command
|
||||
reject status --yes
|
||||
reject enable --rpm
|
||||
reject enable --unknown
|
||||
reject disable --force
|
||||
|
||||
payload_url=
|
||||
payload_sha256=
|
||||
|
||||
Reference in New Issue
Block a user