changed runtime dir
This commit is contained in:
@@ -335,7 +335,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id" : 53,
|
"id" : 53,
|
||||||
"address" : 75,
|
"address" : 75,
|
||||||
"name" : "speech 1: \"you're good! but i'm still the champ!\"",
|
"name" : "speech 1: \"you're good! but i'm still the champ!\"",
|
||||||
"extender" : "extender_0"
|
"extender" : "extender_0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ void FlippRServer::handle_help(const std::string& name, const std::string& value
|
|||||||
|
|
||||||
std::string FlippRServer::get_runtime_dir()
|
std::string FlippRServer::get_runtime_dir()
|
||||||
{
|
{
|
||||||
std::string runtime_dir = std::getenv("XDG_RUNTIME_DIR");
|
const char* runtime_dir = std::getenv("XDG_RUNTIME_DIR");
|
||||||
if(&runtime_dir == nullptr)
|
if(&runtime_dir == nullptr)
|
||||||
{
|
{
|
||||||
runtime_dir = DEFAULT_RUNTIME_DIR;
|
runtime_dir = DEFAULT_RUNTIME_DIR;
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ private:
|
|||||||
Poco::Net::TCPServer* build_input_server();
|
Poco::Net::TCPServer* build_input_server();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string DEFAULT_RUNTIME_DIR = "/tmp/flippR_driver-runtime/";
|
const char * DEFAULT_RUNTIME_DIR = "/tmp/flippR_driver-runtime/";
|
||||||
const std::string SOCKET_NAME = "S.flippR_driver";
|
const char * SOCKET_NAME = "S.flippR_driver";
|
||||||
const std::vector<std::string> REQUIRED_CONFIG_KEYS = {"display-config", "input-config", "lamp-config",
|
const std::vector<std::string> REQUIRED_CONFIG_KEYS = {"display-config", "input-config", "lamp-config",
|
||||||
"matrix-config", "solenoid-config", "sound-config"};
|
"matrix-config", "solenoid-config", "sound-config"};
|
||||||
int input_port;
|
int input_port;
|
||||||
|
|||||||
Reference in New Issue
Block a user