31 lines
926 B
Diff
31 lines
926 B
Diff
https://github.com/obsproject/obs-studio/issues/11029#issuecomment-2249747587
|
|
--- a/libobs/obs-nix.c
|
|
+++ b/libobs/obs-nix.c
|
|
@@ -68,26 +68,6 @@ static const struct obs_nix_hotkeys_vtab
|
|
|
|
void add_default_module_paths(void)
|
|
{
|
|
- char *module_bin_path =
|
|
- os_get_executable_path_ptr("../" OBS_PLUGIN_PATH);
|
|
- char *module_data_path = os_get_executable_path_ptr(
|
|
- "../" OBS_DATA_PATH "/obs-plugins/%module%");
|
|
-
|
|
- if (module_bin_path && module_data_path) {
|
|
- char *abs_module_bin_path =
|
|
- os_get_abs_path_ptr(module_bin_path);
|
|
-
|
|
- if (abs_module_bin_path &&
|
|
- strcmp(abs_module_bin_path, OBS_INSTALL_PREFIX
|
|
- "/" OBS_PLUGIN_DESTINATION) != 0) {
|
|
- obs_add_module_path(module_bin_path, module_data_path);
|
|
- }
|
|
- bfree(abs_module_bin_path);
|
|
- }
|
|
-
|
|
- bfree(module_bin_path);
|
|
- bfree(module_data_path);
|
|
-
|
|
for (int i = 0; i < module_patterns_size; i++) {
|
|
obs_add_module_path(module_bin[i], module_data[i]);
|
|
}
|