Bug 11409 - $TMPDIR should be respected
Summary: $TMPDIR should be respected
Alias: None
Product: UIM
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: uim-bugs
QA Contact:
Depends on:
Blocks: 7164
  Show dependency treegraph
Reported: 2007-06-28 13:08 UTC by Christian Biere
Modified: 2008-01-03 20:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

Respect TMPDIR and use dot-files as socket paths (2.92 KB, patch)
2007-06-28 13:12 UTC, Christian Biere
Details | Splinter Review

Description Christian Biere 2007-06-28 13:08:32 UTC
UIM uses the variable $TMP instead of $TMPDIR. TMPDIR is mentioned by POSIX:

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.