diff options
author | akir <akir> | 2004-10-06 11:40:28 (GMT) |
---|---|---|
committer | akir <akir> | 2004-10-06 11:40:28 (GMT) |
commit | 6f96757fc4e9ed3aa7d77681b8401521a1a681a9 (patch) | |
tree | 34550002f4659dcafef7749a444eae321e8ccb6a /src/FbCommands.cc | |
parent | 997d7d72244911c7224775f2e4c0f62a1dcd32ef (diff) | |
download | fluxbox-6f96757fc4e9ed3aa7d77681b8401521a1a681a9.zip fluxbox-6f96757fc4e9ed3aa7d77681b8401521a1a681a9.tar.bz2 |
added :Export / :Setenv command
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 6a9c548..b57534c 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.27 2004/09/11 20:28:35 fluxgen Exp $ | 22 | // $Id: FbCommands.cc,v 1.28 2004/10/06 11:40:28 akir Exp $ |
23 | 23 | ||
24 | #include "FbCommands.hh" | 24 | #include "FbCommands.hh" |
25 | #include "fluxbox.hh" | 25 | #include "fluxbox.hh" |
@@ -123,6 +123,15 @@ void ExecuteCmd::execute() { | |||
123 | 123 | ||
124 | } | 124 | } |
125 | 125 | ||
126 | ExportCmd::ExportCmd(const std::string& name, const std::string& value) : | ||
127 | m_name(name), m_value(value) { | ||
128 | } | ||
129 | |||
130 | void ExportCmd::execute() { | ||
131 | setenv(m_name.c_str(), m_value.c_str(), 1); | ||
132 | } | ||
133 | |||
134 | |||
126 | void ExitFluxboxCmd::execute() { | 135 | void ExitFluxboxCmd::execute() { |
127 | Fluxbox::instance()->shutdown(); | 136 | Fluxbox::instance()->shutdown(); |
128 | } | 137 | } |