http://bugs.winehq.org/show_bug.cgi?id=17318
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-03-03 15:15:27 --- Problem still exist in wine-1.1.16.
First I'd suggest using mkstemp() instead. Second, creating temp files in the data directory is not a good thing. Third even if the /tmp and /home are on the same file system there could be a menu file with the same name already in xdg_config_dir.