Which gtk method I have to use to get temporary path in Ubuntu?

前端 未结 5 1464
借酒劲吻你
借酒劲吻你 2021-01-03 00:52

How can I get the temporary directory path in Ubuntu?

5条回答
  •  醉梦人生
    2021-01-03 01:05

    From the command line:

    $ tempfile | xargs dirname
    /tmp
    $ TMPDIR="/mnt/tmp" tempfile | xargs dirname
    /mnt/tmp
    

提交回复
热议问题