Uzbl

Tasklist

FS#297 - uzbl-tabbed should create its socket in a temporary directory

Attached to Project: Uzbl
Opened by Benjamin Barenblat (bbarenblat) - 2012-04-21 09:07:04 PM
Task Type Bug Report
Category uzbl-tabbed
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Some file systems (notably, AFS) don't support UNIX domain sockets. If your home directory is on such a file system, uzbl-tabbed fails with a Python traceback.

Chromium ran into this issue back in August 2010 (see <https://code.google.com/p/chromium/issues/detail?id=44606>). The developers fixed it by having Chromium create its sockets in temporary directories and then symlinking to them from users' profile directories.
This task depends upon

Comment by Benjamin Barenblat (bbarenblat) - 2012-04-24 06:47:35 PM
It looks like the best thing to do here is to put the socket in $XDG_RUNTIME_DIR. If XDG_RUNTIME_DIR is unset, we should fall back to $XDG_CACHE_HOME (that's what GLib does; see <http://developer.gnome.org/glib/2.28/glib-Miscellaneous-Utility-Functions.html#g-get-user-runtime-dir>).
Comment by David Keijser (keis) - 2012-07-21 02:16:15 PM
Agreed. Also I never knew glib had functions to get a the xdg vars or defaults. I would make sense for us to use that I think rather that rolling our own, right?

Loading...