[Xfce-bugs] [Bug 1060] startxfce4 fails on Sparc/Solaris when dbus is installed

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun Jul 17 09:15:50 CEST 2005


Do NOT reply to this email.  To make further comments on this bug, use
the URL below:
http://bugzilla.xfce.org/show_bug.cgi?id=1060





------- Additional Comments From jh at junetz.de  2005-07-17 07:15 UTC -------
(In reply to comment #1)
> I don't have a non bash shell to test with, but does replacing the offending
> eval with a simple /bin/sh resolve the problem? I ain't a shell scripter of any
> merit, but shouldn't that bypass eval's mangling of the dbus-launch output?

I don't think this will work. The eval function is used because the output of
dbus-launch is environment declarations that need to be added to the environment
of the /current/ shell. If you use /bin/sh for calling dbus-launch, the
environment of that subshell will be modified and not the one of the current
shell. However, other processes spawned from the current shell will only inherit
the environment of the current shell, not of any subshell.

I think the right way to go is to use bash for execution of the scripts.
However, I don't know about other platforms and why /bin/sh is used at all.
Sure, bash is not installed everywhere right from the start. But if there is no
other way than using the eval function here, I vote for using /bin/bash for
$prog or at least make sure that it is bash compatible.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list