jrouleau / bluetooth-autoconnect

A linux command line tool to automatically connect to all paired and trusted bluetooth devices.
MIT License
212 stars 42 forks source link

Displayed name of bluetooth-autoconnect in ps / pstree #3

Closed arkadiusz-x closed 4 years ago

arkadiusz-x commented 4 years ago

Hi, I've noticed that after running the bluetooth-autoconnect script in daemon mode it is visible as "python3" in processes list. Is it possible somehow to change the process name to e.g. bluetooth-autoconnect or python3/bluetooth-autoconnect (permanently e.g. by modifying script file)?

Currently the only way to check if the script is running is to use ps u -C python3 command but it won't show other processes.

arkadiusz-x commented 4 years ago

I've found the solution 😅

Modification of the shebang line in bluetooth-autoconnect file solves the problem:

before: #!/usr/bin/env -S python3 -u

after: #!/usr/bin/python3 -u