I have a program called xatelite
, that is literally a script in /usr/local/bin/xatelite
that has the following content.
#!/usr/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from xatelite import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
When I run this within a tmux instance, the pane takes the name python3.6*
, because that is the process that is running. How do I make sure that the process is named xatelite
. I want this to also be the case in htop
and other programs that inspect processes.