/usr/bin/pida-remote is in pida 0.5.1-6.
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 | #! /usr/bin/env python
import os, sys
from pida.utils.grpc import LocalClientDispatcher
from pida.utils.testing import refresh_gui
class PidaClientDispatcher(LocalClientDispatcher):
def remote_ok(self, command):
sys.exit(0)
def main():
dispatcher = PidaClientDispatcher(9124)
file_name = os.path.abspath(sys.argv[-1])
dispatcher.call_server('open', (file_name,))
refresh_gui()
print 'Error: PIDA was not available'
sys.exit(1)
if __name__ == '__main__':
main()
|