Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
platform.cc File Reference
#include "core/platform.h"
#include <fcntl.h>
#include <sys/file.h>
#include <unistd.h>
#include <cerrno>
#include <cstring>
#include <string>
#include <utility>
Include dependency graph for platform.cc:

Namespaces

namespace  mm
 
namespace  mm::core
 

Functions

std::filesystem::path mm::core::exeDir ()
 Return the directory that contains the running executable.
 
void mm::core::openInBrowser (const std::string &url)
 Open the given URL in the system default browser.
 
std::expected< SingleInstanceLock, std::string > mm::core::acquireSingleInstanceLock ()
 Acquire the process-wide lock that permits only one running Motion Master.