Resources path should use the same path as meson installed path

This commit is contained in:
dec05eba
2024-08-05 21:25:59 +02:00
parent 041ee753b1
commit ae1897cf2c
2 changed files with 13 additions and 5 deletions

View File

@@ -396,10 +396,15 @@ int main(int argc, char **argv) {
gsr::init_theme(gsr_info);
std::string project_dir;
if(access("images/gpu_screen_recorder_logo.png", F_OK) == 0)
if(access("images/gpu_screen_recorder_logo.png", F_OK) == 0) {
project_dir = "./";
else
} else {
#ifdef GSR_OVERLAY_RESOURCES_PATH
project_dir = GSR_OVERLAY_RESOURCES_PATH "/";
#else
project_dir = "/usr/share/gsr-overlay/";
#endif
}
mgl::Init init;
Display *display = (Display*)mgl_get_context()->connection;