cinnamon-common: Patch {cancel-print-dialog,lpstat-a}.py

For issue 380117.

Note that lpstat-a.py does not need to be wrapped.
This commit is contained in:
Bobby Rong
2025-02-08 21:33:59 +08:00
parent a83d658bc5
commit 27cf4a4e23
@@ -171,6 +171,10 @@ stdenv.mkDerivation rec {
substituteInPlace ./modules/cs_user.py --replace-fail "/usr/bin/passwd" "/run/wrappers/bin/passwd"
popd
# In preFixup we make these executable.
substituteInPlace ./files/usr/share/cinnamon/applets/printers@cinnamon.org/applet.js \
--replace-fail "Util.spawn_async(['python3'," "Util.spawn_async(["
substituteInPlace ./files/usr/bin/cinnamon-session-{cinnamon,cinnamon2d} \
--replace-fail "exec cinnamon-session" "exec ${cinnamon-session}/bin/cinnamon-session"
@@ -198,6 +202,10 @@ stdenv.mkDerivation rec {
# Called as `pkexec cinnamon-settings-users.py`.
wrapGApp $out/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py
# postPatch touches both but we mainly want to wrap cancel-print-dialog.
chmod +x $out/share/cinnamon/applets/printers@cinnamon.org/{cancel-print-dialog,lpstat-a}.py
wrapGApp $out/share/cinnamon/applets/printers@cinnamon.org/cancel-print-dialog.py
'';
passthru = {