Skip to content

Commit 315801a

Browse files
committed
cinnamon-subprocess-wrapper: Handle invalid utf8, fix error message.
ref: https://bugzilla.redhat.com/show_bug.cgi?id=2240531
1 parent 0b4525c commit 315801a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/usr/bin/cinnamon-subprocess-wrapper

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ if __name__ == "__main__":
2727
"/org/Cinnamon",
2828
"org.Cinnamon",
2929
"PushSubprocessResult",
30-
GLib.Variant("(isb)", (process_id, result.decode(), success)),
30+
GLib.Variant("(isb)", (process_id, result.decode(errors="replace"), success)),
3131
None,
3232
Gio.DBusCallFlags.NONE,
3333
2000,
3434
None)
3535
except GLib.Error as e:
36-
print("Could not play test sound: %s" % e.message)
36+
print("Could not send response (ID: %d): %s" % (process_id, e.message))
3737

0 commit comments

Comments
 (0)