Add UUID to apps w/ add option to use App's id for virtual display (resolves #48)

This commit is contained in:
Yukino Song
2024-09-22 05:52:00 +08:00
parent 4d5cc526b5
commit 80fb7efc3d
8 changed files with 213 additions and 158 deletions

View File

@@ -12,6 +12,7 @@
#include <unordered_map>
#include <boost/process.hpp>
#include <boost/property_tree/ptree.hpp>
#include "config.h"
#include "platform/common.h"
@@ -59,6 +60,7 @@ namespace proc {
*/
std::vector<std::string> detached;
std::string uuid;
std::string name;
std::string cmd;
std::string working_dir;
@@ -70,6 +72,7 @@ namespace proc {
bool wait_all;
bool virtual_display;
bool virtual_display_primary;
bool use_app_identity;
int scale_factor;
std::chrono::seconds exit_timeout;
};
@@ -150,6 +153,8 @@ namespace proc {
validate_app_image_path(std::string app_image_path);
void
refresh(const std::string &file_name);
void
migrate_apps(boost::property_tree::ptree* fileTree_p, boost::property_tree::ptree* inputTree_p);
std::optional<proc::proc_t>
parse(const std::string &file_name);