I am intresting in launching an xterm window from python code in following way:
cmd = './my_task'
subprocess.Popen(['xterm', '-t', 'my_task', '-e', cmd])
However, I want this xterm session to be set to always on top from command line.
One way I was able to do this is by doing this:
cmd = 'wmcntl -r 'my_task' -b add,above; ./my_task'
subprocess.Popen(['xterm', '-t', 'my_task', '-e', cmd])
But this requires the machine to have wmctrl installed.
Is there a standard way of doing this (I don't need a cross platform solution, just for Linux)
Thanks,
Itay