http://bugs.winehq.org/show_bug.cgi?id=17318
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Difficulty|--- |Minutes
--- Comment #1 from Damjan Jovanovic damjan.jov@gmail.com 2009-02-08 22:57:19 --- The bug starts ealier in the write_menu_file() function, where tempfilename is generated:
tempfilename = tempnam(xdg_config_dir, "_wine");
You'll note that the directory is passed as xdg_config_dir, not /tmp. But the tempnam() function will first examine the environment variable $TMPDIR and use that, and only if that environment variable isn't set, try the passed directory.
I could unset $TMPDIR before and set it after calling tempnam() to force it to use xdg_config_dir.