How to find socket path for Mainnet or Testnet - Daedalus?

In

they have used ps (Linux tool to show all running processes) to find the path.

In

I have just hard-coded it, since it is the same on every run, anyway (at least for mainnet, don’t know if it is also stable for testnet).