]> git.lyx.org Git - lyx.git/blob - src/support/systemcall.C
Look for mathed xpms. Doesn't do anything yet due to lack of workable XPMs
[lyx.git] / src / support / systemcall.C
1 /**
2  *  \file systemcall.C
3  *  Copyright 2002 the LyX Team
4  *  Read the file COPYING
5  *
6  * \author Asger Alstrup
7  *
8  * Interface cleaned up by
9  * \author Angus Leeming <a.leeming@ic.ac.uk>
10  */
11
12 #include <config.h>
13
14 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include "systemcall.h"
19 #include "os.h"
20
21 #include <cstdlib>
22
23 #ifndef CXX_GLOBAL_CSTD
24 using std::system;
25 #endif
26
27 // Reuse of instance
28 int Systemcall::startscript(Starttype how, string const & what)
29 {
30         string command = what;
31
32         if (how == DontWait) {
33                 if (os::shell() == os::UNIX) {
34                         command += " &";
35                 } else {
36                         command = "start /min/n " + command;
37                 }
38         }
39
40         return ::system(command.c_str());
41 }