How to gracefully terminate a lost CLion instance over X11 remote?

When running CLion remotely over X11 forwarding, with the IDE running remotely on a Linux machine, once the connection drops, the IDE instance gets "lost". That means the IDE is still running, I can't reconnect to it, and I can't terminate it in a way other than "ps aux | grep clion" and kill the processes one by one. This is far from being productive especially if the connection drops quite often.

 

Is there a command line switch or some other solution for gracefully terminating an existing CLion instance or reconnecting back to it when using X11 forwarding?

0
1 comment

1. Try to use xkill - run it from terminal and kill your CLion instance.
2. Better - you can remotely develop in your desktop CLion as described in "Full remote mode" https://www.jetbrains.com/help/clion/remote-projects-support.html

Hope it will help.

0

Please sign in to leave a comment.