Skip to content

Commit 27cf4a4

Browse files
committed
cinnamon-common: Patch {cancel-print-dialog,lpstat-a}.py
For issue 380117. Note that lpstat-a.py does not need to be wrapped.
1 parent a83d658 commit 27cf4a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/ci/cinnamon-common/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ stdenv.mkDerivation rec {
171171
substituteInPlace ./modules/cs_user.py --replace-fail "/usr/bin/passwd" "/run/wrappers/bin/passwd"
172172
popd
173173
174+
# In preFixup we make these executable.
175+
substituteInPlace ./files/usr/share/cinnamon/applets/[email protected]/applet.js \
176+
--replace-fail "Util.spawn_async(['python3'," "Util.spawn_async(["
177+
174178
substituteInPlace ./files/usr/bin/cinnamon-session-{cinnamon,cinnamon2d} \
175179
--replace-fail "exec cinnamon-session" "exec ${cinnamon-session}/bin/cinnamon-session"
176180
@@ -198,6 +202,10 @@ stdenv.mkDerivation rec {
198202
199203
# Called as `pkexec cinnamon-settings-users.py`.
200204
wrapGApp $out/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py
205+
206+
# postPatch touches both but we mainly want to wrap cancel-print-dialog.
207+
chmod +x $out/share/cinnamon/applets/[email protected]/{cancel-print-dialog,lpstat-a}.py
208+
wrapGApp $out/share/cinnamon/applets/[email protected]/cancel-print-dialog.py
201209
'';
202210

203211
passthru = {

0 commit comments

Comments
 (0)