Gradience/gradience
Jonathan Lestrelin 976270150d
Parse firefox profiles.ini files to get paths of profiles. (#664)
# Parse firefox profiles.ini files to get paths of profiles

This parses firefox profiles.ini files to get the paths of the profiles
instead of just treating any subdir of the firefox dir as a profile.

This allows supporting profiles without a dot in their name which the
existing glob didn't match which can happen if they are named manually,
as well as profiles configured to be outside of the firefox directory
that were ignored and profiles that are symlinked (by adding a resolve()
on the path before the is_dir()).

There is also an additional try condition to avoid failing for the
remaining profiles if encountering a profile without the
customChrome.css, as it might be installed on some profiles only.

## Changelog

- Fixed theming Firefox profiles that don't have a dot in their name
- Fixed theming Firefox profiles that are outside of the Firefox dir
- Fixed theming Firefox profiles that are symlinks
- Fixed failing to theme remaining profiles after encountering one on
which the firefox-gnome-theme is not present

Please note that I have only tested on non-flatpak Firefox.

Signed-off-by: 0xMRTT <0xMRTT@proton.me>
Co-authored-by: 0xMRTT <0xMRTT@proton.me>
2022-11-30 07:13:57 +01:00
..
ui Grammar fix 2022-11-25 19:01:15 +02:00
utils feat: more readible exceptions in 'preset' module 2022-11-20 17:21:23 +01:00
__init__.py feat: local build support 2022-09-13 20:06:03 +02:00
constants.py.in feat: Add copyright notices to modules 2022-10-10 21:52:45 +02:00
gradience.in revert: bump: 0.3.2 2022-11-11 00:08:06 +03:00
main.py Parse firefox profiles.ini files to get paths of profiles. (#664) 2022-11-30 07:13:57 +01:00
meson.build fix: add LOCALE_DIR to constants.py meson config 2022-11-11 01:40:20 +01:00
plugins_list.py feat: add plugin debug 2022-10-11 19:15:57 +02:00
settings_schema.py fix: typo error 2022-09-30 18:57:06 +02:00
Structure.md docs: update source code structure explanation 2022-11-09 22:06:31 +01:00