MathewSachin / Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
https://mathewsachin.github.io/Captura/
MIT License
9.7k stars 1.81k forks source link

Portable settings #376

Closed StormFenrir closed 5 years ago

StormFenrir commented 5 years ago

Hi!

The portable version leave settings in "\AppData\Roaming\Captura". Setting not copied into the program's folder and when I use it on another computer, lose the settings and can't find the FFMPEG. I have to add again the path always.

Can't add path like ".\Captura\Settings" or ".\Captura\FFMPEG\". The software accept only full path... I think it is not "portable". :)

Thanks!

MathewSachin commented 5 years ago

I've done some changes regarding portability of Settings and FFmpeg folders.

Here's a dev build to test: https://ci.appveyor.com/api/buildjobs/m29qt216g8vf8g28/artifacts/Captura-Portable.zip

If the app directory contains a directory named Settings, then it is used for storing settings instead of AppData path. If the app directory contains a directory named Codecs, then it is used as FFmpeg folder by default if another folder is not specified in settings. Also, a variable %CAPTURA_PATH% is now supported in specifying paths in the Settings file which resolve to the app directory.

StormFenrir commented 5 years ago

Works perfectly! Thank you! Have a nice day! :)