@SGaist Thanks for your reply. I have solved it.
I found that it was using root env when started my application with sudo.
So i changed it in /etc/sudoer
[image: 03ecf97c-b49c-4071-a21a-4713fa15c9c2.png]
Defaults env_reset ----> Defaults !env_reset
But i don't konw why. T_T