[Bug 1965468] Re: refresh app awareness: snapd thinks clion is running, but it isn't

2022-03-18 Thread Alberto Mardegan
The code managing this situation actually has the information about the PIDs of the running processes. Samuele, do you think we should print them as part of the error message? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1965468] Re: refresh app awareness: snapd thinks clion is running, but it isn't

2022-03-17 Thread Alistair Buxton
PS I will leave this open because the tooling/docs/error messages when this happens could be more helpful. I had to go and read snapd source code to find out how it even determines that a snap is running. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1965468] Re: refresh app awareness: snapd thinks clion is running, but it isn't

2022-03-17 Thread Alistair Buxton
Okay I found the problem - a detached tmux session was still running inside the container. The way you actually find this is to run `systemctl-cgls` and then look for the cgroup belonging to the snap. It will be something like `snap.clion.clion.e566369e-6a51-4497-84ba-d4f52f65291b.scope` and the