]> git.lyx.org Git - lyx.git/blob - src/support/systemcall.C
Documentation + file removals as sent to list
[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
24 // Reuse of instance
25 int Systemcall::startscript(Starttype how, string const & what)
26 {
27         string command = what;
28
29         if (how == DontWait) {
30                 if (os::shell() == os::UNIX) {
31                         command += " &";
32                 } else {
33                         command = "start /min/n " + command;
34                 }
35         }
36
37         return ::system(command.c_str());
38 }