[MacPorts] #16833: dbus autolaunch fails because of '/' characters in $DISPLAY
MacPorts
noreply at macports.org
Sat Oct 11 17:59:07 PDT 2008
#16833: dbus autolaunch fails because of '/' characters in $DISPLAY
-----------------------------+----------------------------------------------
Reporter: mp at dpj.sent.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: | Port: dbus
-----------------------------+----------------------------------------------
dbus autolaunch fails on OS X 10.5 Leopard because the DISPLAY environment
variable contains '/' characters. (It may also fail on 10.4 but I haven't
tested it.)
dbus-launch uses the DISPLAY env var to form the filename for the session
file, and then opens/creates that file with a call to fopen(). But because
the filename now contains '/' characters, fopen() fails as it tries to
create directories.
I've made a patch for dbus-launch-x11.c which changes all '/' characters
to '_' characters in the filename. This patch should be safe for 10.4 as
well. I've also made a Portfile patch.
I've filed the bug and patch upstream at
https://bugs.freedesktop.org/show_bug.cgi?id=18013 but thought that we
should include it in macports until it gets applied upstream.
This bug is related to one of the problems with gnucash that is being
reported in bug #16755
--
Ticket URL: <http://trac.macports.org/ticket/16833>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list