diff options
author | fluxgen <fluxgen> | 2003-01-09 22:09:19 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-01-09 22:09:19 (GMT) |
commit | ec1dffac321d0a3369e5e26dd56b2e5fcc4d1a79 (patch) | |
tree | 441065350e7ae994c0b189de21260ae30d676027 | |
parent | 5cfe837b742f78655053256f8f67cb7429c42bcd (diff) | |
download | fluxbox-ec1dffac321d0a3369e5e26dd56b2e5fcc4d1a79.zip fluxbox-ec1dffac321d0a3369e5e26dd56b2e5fcc4d1a79.tar.bz2 |
disabled rootcommand
-rw-r--r-- | src/Theme.cc | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/src/Theme.cc b/src/Theme.cc index b0dbf94..5306b91 100644 --- a/src/Theme.cc +++ b/src/Theme.cc | |||
@@ -21,7 +21,7 @@ | |||
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
23 | 23 | ||
24 | // $Id: Theme.cc,v 1.39 2002/12/02 20:54:30 fluxgen Exp $ | 24 | // $Id: Theme.cc,v 1.40 2003/01/09 22:09:19 fluxgen Exp $ |
25 | 25 | ||
26 | 26 | ||
27 | #include "Theme.hh" | 27 | #include "Theme.hh" |
@@ -446,45 +446,6 @@ void Theme::loadTabStyle() { | |||
446 | } | 446 | } |
447 | 447 | ||
448 | void Theme::loadRootCommand() { | 448 | void Theme::loadRootCommand() { |
449 | XrmValue value; | ||
450 | char *value_type; | ||
451 | |||
452 | if (m_rootcommand.size()) { | ||
453 | #ifndef __EMX__ | ||
454 | char tmpstring[256]; //to hold m_screennum | ||
455 | tmpstring[0]=0; | ||
456 | sprintf(tmpstring, "%d", m_screennum); | ||
457 | string displaystring("DISPLAY="); | ||
458 | displaystring.append(DisplayString(m_display)); | ||
459 | displaystring.append(tmpstring); // append m_screennum | ||
460 | |||
461 | bexec(m_rootcommand.c_str(), const_cast<char *>(displaystring.c_str())); | ||
462 | |||
463 | #else // __EMX__ | ||
464 | spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_rootcommand.c_str(), 0); | ||
465 | #endif // !__EMX__ | ||
466 | |||
467 | } else if (XrmGetResource(m_database, "rootCommand", "RootCommand", | ||
468 | &value_type, &value)) { | ||
469 | #ifndef __EMX__ | ||
470 | char tmpstring[256]; //to hold m_screennum | ||
471 | tmpstring[0]=0; | ||
472 | sprintf(tmpstring, "%d", m_screennum); | ||
473 | string displaystring("DISPLAY="); | ||
474 | displaystring.append(DisplayString(m_display)); | ||
475 | displaystring.append(tmpstring); // append m_screennum | ||
476 | |||
477 | bexec(value.addr, const_cast<char *>(displaystring.c_str())); | ||
478 | #else // __EMX__ | ||
479 | spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", value.addr, 0); | ||
480 | #endif // !__EMX__ | ||
481 | |||
482 | } | ||
483 | #ifdef DEBUG | ||
484 | else | ||
485 | cerr<<__FILE__<<"("<<__LINE__<<"): Didn't find rootCommand."<<endl; | ||
486 | #endif | ||
487 | |||
488 | } | 449 | } |
489 | 450 | ||
490 | void Theme::loadMisc() { | 451 | void Theme::loadMisc() { |