In ALT we have `TMPDIR` set for all users (including root) to `/tmp/.private/$USER`, this is intended to improve security as these dirs are completely isolated (by o-rwx permissions) for each user. As a consequence `KSCapture` socket is created in user's dir (such as `/tmp/.private/vt/KSCapture`) and `pkexec`'d `kshark-record` tries to connect to `/tmp/.private/root/KSCapture` which does not exist, and this causes Capture error: ``` QLocalSocket::connectToServer: Connection refused (maybe KernelShark GUI is not open) ``` I wonder what is best solution would be to solve this problem (and not extremely familiar with `QLocalSocket` either). Do you have any suggestions? Previously I was changing these calls: src/KsCaptureDialog.cpp:624: socket->connectToServer("KSCapture", QIODevice::WriteOnly); src/KsMainWindow.cpp:1523: _captureLocalServer.listen("KSCapture"); to use "/tmp/KSCapture", since `/tmp` is expected there anyway.
Hi Vitaly, This sounds to me more like a very user-specific corner-case. Note that the Capture dialog is meant to be more like a simplistic introduction tool for new users. If you want to do something more advanced you betere user directly trace-cmd and later open the file in kernelshark. cheers, Y.