obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.39k stars 7.99k forks source link

UI: Fix broken module paths provided via environment on macOS #11468

Open PatTheMav opened 2 weeks ago

PatTheMav commented 2 weeks ago

Description

Fix macOS-specific paths added to list of module paths when custom environment variables are provided to OBS Studio at launch.

Motivation and Context

When custom module and module data paths are provided via environment variables, the module paths generated by current code will not be compatible with the plugin bundle structure used on macOS.

Using environment variables is a simple way to test plugins, as this allows OBS to discover them from alternative user-provided locations.

How Has This Been Tested?

Tested on macOS with plugins put into a custom location and provided the same directory as OBS_PLUGINS_PATH and OBS_PLUGINS_DATA_PATH via Xcode launch options.

Types of changes

Checklist: