mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-13 14:05:15 +02:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
https://github.com/obsproject/obs-studio/issues/11029#issuecomment-2249747587
|
|
--- a/libobs/obs-nix.c
|
|
+++ b/libobs/obs-nix.c
|
|
@@ -67,24 +67,6 @@ static const struct obs_nix_hotkeys_vtable *hotkeys_vtable = NULL;
|
|
|
|
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);
|
|
- char *abs_module_install_path = os_get_abs_path_ptr(OBS_INSTALL_PREFIX "/" OBS_PLUGIN_DESTINATION);
|
|
-
|
|
- if (abs_module_bin_path &&
|
|
- (!abs_module_install_path || strcmp(abs_module_bin_path, abs_module_install_path) != 0)) {
|
|
- obs_add_module_path(module_bin_path, module_data_path);
|
|
- }
|
|
- bfree(abs_module_install_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]);
|
|
}
|