UI: Fix relocatable Linux builds using legacy portable build flag

This commit is contained in:
PatTheMav
2024-04-16 12:46:51 -04:00
committed by Ryan Foster
parent cb1a4c1c61
commit 34c846cad9
+5 -2
View File
@@ -184,7 +184,7 @@ static inline bool check_path(const char *data, const char *path,
return (access(output.c_str(), R_OK) == 0);
}
#define INSTALL_DATA_PATH OBS_INSTALL_PREFIX OBS_DATA_PATH "/obs-studio/"
#define INSTALL_DATA_PATH OBS_INSTALL_PREFIX "/" OBS_DATA_PATH "/obs-studio/"
bool GetDataFilePath(const char *data, string &output)
{
@@ -200,7 +200,10 @@ bool GetDataFilePath(const char *data, string &output)
if (relative_data_path) {
bool result = check_path(data, relative_data_path, output);
bfree(relative_data_path);
return result;
if (result) {
return true;
}
}
if (check_path(data, OBS_DATA_PATH "/obs-studio/", output))