From 4649df40843318f347691fddfcca7c2c88ea4bc7 Mon Sep 17 00:00:00 2001 From: akir Date: Thu, 21 Oct 2004 13:05:50 +0000 Subject: back to setenv for non-irix for now, we need to look deeper into this some day. --- src/FbCommands.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index e4ea86d..1d298a4 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.29 2004/10/21 10:24:34 akir Exp $ +// $Id: FbCommands.cc,v 1.30 2004/10/21 13:05:50 akir Exp $ #include "FbCommands.hh" #include "fluxbox.hh" @@ -135,7 +135,12 @@ ExportCmd::ExportCmd(const std::string& name, const std::string& value) : } void ExportCmd::execute() { +// TODO: we need to analyze this a bit more +#if defined sgi && ! defined GCC putenv((m_name + "=" + m_value).c_str()); +#else + setenv(m_name.c_str(), m_value.c_str(), 1); +#endif } -- cgit v0.11.2