/usr/bin/cinnamon-subprocess-wrapper is in cinnamon 3.2.7-4.
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 | #!/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])
result = subprocess.check_output(sys.argv[2:])
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)
|