UI,cmake: Get default video path on Linux with GLib
Description
Qt does not always rely on xdg-user-dirs behavior to get the video directory. So the GLib API that relies on this behavior is used.
Note that GLib is already used by Qt itself for its event loop on Linux, so adding GLib as a dependency of the UI is not an issue.
Closes #3746
Motivation and Context
Get the XDG video directory through a widespread UTF-8 implementation.
How Has This Been Tested?
- Removed
RecFilePathandFFFilePathfrom my profile config - Ran OBS and change a random profile setting and save it
- Check the profile config and see that the value are the XDG video directory.
Types of changes
- Tweak (non-breaking change to improve existing functionality)
Checklist:
- [x] My code has been run through clang-format.
- [x] I have read the contributing document.
- [x] My code is not on the master branch.
- [x] The code has been tested.
- [x] All commit messages are properly formatted and commits squashed where appropriate.
- [x] I have included updates to all appropriate documentation.
If we were going to do this, not adding 224 lines of cmake is a strong benefit of #3746
If we were going to do this, not adding 224 lines of cmake is a strong benefit of #3746
Half of it is because of the legacy path (duplication), also a finder does not usually need changes post merge (low maintenance burden).
Custom Glib2 was dropped for the one provided by ECM.