Bug 11409

Summary: $TMPDIR should be respected
Product: UIM Reporter: Christian Biere <christianbiere>
Component: OtherAssignee: uim-bugs
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium CC: ek.kato
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 7164    
Attachments: Respect TMPDIR and use dot-files as socket paths

Description Christian Biere 2007-06-28 13:08:32 UTC
UIM uses the variable $TMP instead of $TMPDIR. TMPDIR is mentioned by POSIX:
http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap08.html

The variable TMP can certainly be used for the same purpose but TMPDIR should be respected as well and preferred.
Comment 1 Christian Biere 2007-06-28 13:12:42 UTC
Created attachment 10490 [details] [review]
Respect TMPDIR and use dot-files as socket paths

The attached patch adds support for TMPDIR. Further I've prepended dots to the names for the unix domain sockets, so that these are "hidden" by default. Many other applications hide sockets this way so these don't clutter up directory listings.
Comment 2 YamaKen 2008-01-03 06:05:36 UTC
Thanks for the patch. After this report, almost all sockets had been relocated to ~/.uim.d/. But usersockname() in fep/udsock.c is still referring $TMP. Etsushi, should it be replaced with get_ud_path()?
Comment 3 Etsushi Kato 2008-01-03 18:26:14 UTC
I'll check it later.
Comment 4 Etsushi Kato 2008-01-03 20:42:13 UTC
Fixed in r5097.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.