diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-26 11:37:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-26 11:37:52 +0200 |
commit | 1d2fc77cfcd3d40c3a382d3f5f8e6c28e8b38da9 (patch) | |
tree | ccca52a56efa7421e44c96594f42bc08c06c2497 /src/Utils.cpp | |
parent | 57977f29e10c8c2a8ba58c25e9ab653aed7cc0a9 (diff) |
Make the ui the daemon instead, add hotkey for recording/pause
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index 0f86ecc..6d45196 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -198,21 +198,4 @@ namespace gsr { } return result; } - - std::optional<std::string> get_gsr_runtime_dir() { - std::optional<std::string> result; - char runtime_dir_path[256]; - snprintf(runtime_dir_path, sizeof(runtime_dir_path), "/run/user/%u", (unsigned int)getuid()); - - struct stat st; - if(stat(runtime_dir_path, &st) == -1 || !S_ISDIR(st.st_mode)) - snprintf(runtime_dir_path, sizeof(runtime_dir_path), "/tmp"); - - strcat(runtime_dir_path, "/gsr-ui"); - if(create_directory_recursive(runtime_dir_path) != 0) - return result; - - result = runtime_dir_path; - return result; - } }
\ No newline at end of file |