all repos — fluxbox @ 4649df40843318f347691fddfcca7c2c88ea4bc7

custom fork of the fluxbox windowmanager

back to setenv for non-irix for now, we need to look deeper into this some day.
akir akir
commit

4649df40843318f347691fddfcca7c2c88ea4bc7

parent

2d1b92a138a5601d0528ab1c1f560869ce2eb3cd

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/FbCommands.ccsrc/FbCommands.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ m_name(name), m_value(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 }