Mention setcap dependency

This commit is contained in:
dec05eba
2025-05-24 16:38:36 +02:00
parent 2df417f23f
commit b807712d79
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ These are the dependencies needed to build GPU Screen Recorder UI:
* libpulse (libpulse-simple)
* libdrm
* wayland (wayland-client, wayland-egl, wayland-scanner)
* setcap (libcap)
## Runtime dependencies
There are also additional dependencies needed at runtime:

View File

@@ -1640,6 +1640,7 @@ namespace gsr {
return result;
}
// TODO: Utf8 truncate
static void truncate_string(std::string &str, int max_length) {
if((int)str.size() > max_length)
str.replace(str.begin() + max_length, str.end(), "...");