19std::filesystem::path
exeDir();
75 static constexpr std::intptr_t kInvalid = -1;
76 std::intptr_t handle_ = kInvalid;
RAII holder of the process-wide single-instance lock.
Definition platform.h:62
~SingleInstanceLock()
Definition platform.cc:115
SingleInstanceLock(const SingleInstanceLock &)=delete
friend std::expected< SingleInstanceLock, std::string > acquireSingleInstanceLock()
Acquire the process-wide lock that permits only one running Motion Master.
Definition platform.cc:126
SingleInstanceLock & operator=(const SingleInstanceLock &)=delete
SingleInstanceLock & operator=(SingleInstanceLock &&other) noexcept
Definition platform.cc:109
SingleInstanceLock()=default
Definition http_server.h:25
std::string errnoMessage(int err)
Describe an errno value, safely from any thread.
Definition platform.cc:86
std::expected< SingleInstanceLock, std::string > acquireSingleInstanceLock()
Acquire the process-wide lock that permits only one running Motion Master.
Definition platform.cc:126
std::filesystem::path userCacheDir()
Return Motion Master's per-user cache directory.
Definition platform.cc:65
std::filesystem::path exeDir()
Return the directory that contains the running executable.
Definition platform.cc:29
void openInBrowser(const std::string &url)
Open the given URL in the system default browser.
Definition platform.cc:88