I ran pipeline of GStreamer to get data from rtsp server.
Then I got error: error: XDG_RUNTIME_DIR not set in the environment.
I have add some config into visudo as: sudo visudo
Defaults env_keep += "DISPLAY XAUTHORITY"
Defaults env_keep += "https_proxy"
It's still not work. But it ran fine in Ubuntu 16.04
My environment is "5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux".
If you have any solution, please let me know. Thank you very much