stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.45k stars 751 forks source link

Fix ffmpeg resolution when in current directory #4899

Closed WithoutPants closed 1 month ago

WithoutPants commented 1 month ago

Added config.GetConfigPathAbs which returns the absolute path to the config file's directory, and use this to resolve ffmpeg. This fixes an issue where ffmpeg could not be run in the config directory because it's path was not included.

Also changes server_connection.dir sent to plugins to use the absolute path as well, since a relative path may not be useful to plugins.