summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakir <akir>2004-10-21 13:05:50 (GMT)
committerakir <akir>2004-10-21 13:05:50 (GMT)
commit4649df40843318f347691fddfcca7c2c88ea4bc7 (patch)
tree826cd7e8b85b204b76af8fbf736ff50fcbe71bc0
parent2d1b92a138a5601d0528ab1c1f560869ce2eb3cd (diff)
downloadfluxbox_lack-4649df40843318f347691fddfcca7c2c88ea4bc7.zip
fluxbox_lack-4649df40843318f347691fddfcca7c2c88ea4bc7.tar.bz2
back to setenv for non-irix for now, we need to look deeper into this some day.
-rw-r--r--src/FbCommands.cc7
1 files changed, 6 insertions, 1 deletions
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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.cc,v 1.29 2004/10/21 10:24:34 akir Exp $ 22// $Id: FbCommands.cc,v 1.30 2004/10/21 13:05:50 akir Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -135,7 +135,12 @@ ExportCmd::ExportCmd(const std::string& name, const std::string& value) :
135} 135}
136 136
137void ExportCmd::execute() { 137void ExportCmd::execute() {
138// TODO: we need to analyze this a bit more
139#if defined sgi && ! defined GCC
138 putenv((m_name + "=" + m_value).c_str()); 140 putenv((m_name + "=" + m_value).c_str());
141#else
142 setenv(m_name.c_str(), m_value.c_str(), 1);
143#endif
139} 144}
140 145
141 146