1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-02 19:07:28 +03:00
gmenu2x/src/launcher.h
Maarten ter Huurne 3e34124e68 Added Launcher class
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.
2014-08-07 16:48:30 +02:00

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