@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
65eba830-d825-450d-b235-49ce4cff2b8b-image.png

Defaults env_reset ----> Defaults !env_reset

But i don't konw why. T_T