/usr/bin/cinnamon-subprocess-wrapper is in cinnamon 3.6.7-8ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  | #!/usr/bin/python3
""" Runs a command and then passes the output to Cinnamon via DBus asynchronously
Usage:  cinnamon-subprocess-wrapper ls ~/
"""
import subprocess
import sys
import dbus
if __name__ == "__main__":
    process_id = int(sys.argv[1])
    try:
        result = subprocess.check_output(sys.argv[2:])
        success = True
    except:
        result = ""
        success = False
    session_bus = dbus.SessionBus()
    dbus = session_bus.get_object("org.Cinnamon", "/org/Cinnamon")
    PushSubprocessResult = dbus.get_dbus_method('PushSubprocessResult', 'org.Cinnamon')
    PushSubprocessResult(process_id, result, success)
 |