From 1d2fc77cfcd3d40c3a382d3f5f8e6c28e8b38da9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 26 Oct 2024 11:37:52 +0200 Subject: Make the ui the daemon instead, add hotkey for recording/pause --- src/Utils.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/Utils.cpp') 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 get_gsr_runtime_dir() { - std::optional 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 -- cgit v1.2.3