mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-02 19:07:28 +03:00
Currently the launched application is exec-ed from deep within the menu code. This means a lot of destructors are never run and as a result for example file descriptors from the menu remain open in the launched process. This is a first step to move the launch invocation from a deep call stack to the top level.
21 lines
299 B
C++
21 lines
299 B
C++
#ifndef LAUNCHER_H
|
|
#define LAUNCHER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
|
|
class Launcher
|
|
{
|
|
public:
|
|
Launcher(std::vector<std::string> const& commandLine);
|
|
Launcher(std::vector<std::string> && commandLine);
|
|
|
|
void exec();
|
|
|
|
private:
|
|
std::vector<std::string> commandLine;
|
|
};
|
|
|
|
#endif // LAUNCHER_H
|