How to change the default directory temporary capture file

Hi!
I want to change the directory of temporary capture file which is in /tmp/wireshark in linux, which part of the source I should change? Thanks in advance.