Only use mallopt M_MMAP_THRESHOLD if glibc

This commit is contained in:
dec05eba
2025-09-03 18:21:58 +02:00
parent 9efe9d3c91
commit b4e003c8f7
2 changed files with 5 additions and 1 deletions

2
TODO
View File

@@ -211,3 +211,5 @@ Make it possible to change replay duration of the "save 1 min" and "save 10 min"
If replay duration is set below the "save 1 min" or "save 10 min" then gray them out and when hovering over those buttons If replay duration is set below the "save 1 min" or "save 10 min" then gray them out and when hovering over those buttons
show a tooltip that says that those buttons cant be used because the replay duration in replay settings is set to a lower value than that (and display the replay duration there). show a tooltip that says that those buttons cant be used because the replay duration in replay settings is set to a lower value than that (and display the replay duration there).
Add content framerate mode for wayland with desktop portal capture when it has been added to gpu-screen-recorder and if it works.

View File

@@ -195,7 +195,9 @@ enum class LaunchAction {
int main(int argc, char **argv) { int main(int argc, char **argv) {
setlocale(LC_ALL, "C"); // Sigh... stupid C setlocale(LC_ALL, "C"); // Sigh... stupid C
#ifdef __GLIBC__
mallopt(M_MMAP_THRESHOLD, 65536); mallopt(M_MMAP_THRESHOLD, 65536);
#endif
if(geteuid() == 0) { if(geteuid() == 0) {
fprintf(stderr, "Error: don't run gsr-ui as the root user\n"); fprintf(stderr, "Error: don't run gsr-ui as the root user\n");