mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-17 15:36:22 +09:00
Make the ui the daemon instead, add hotkey for recording/pause
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user