Gradience/data
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
..
icons feat: optimize symbolic icon 2022-11-28 20:05:52 +03:00
images feat: swap light-dark illustrations 2022-09-21 01:42:16 +03:00
plugins Parse firefox profiles.ini files to get paths of profiles. (#664) 2022-11-30 07:13:57 +01:00
presets fix: fix @shade_color in adwaita and adwaita dark 2022-09-01 00:09:10 +03:00
ui feat: update presets repo links 2022-11-24 17:48:57 +03:00
com.github.GradienceTeam.Gradience.appdata.xml.in.in feat: bump 0.3.3 and add release notes 2022-11-29 19:23:08 +03:00
com.github.GradienceTeam.Gradience.desktop.in.in feat: rename to Gradience 2022-08-18 18:49:51 +02:00
com.github.GradienceTeam.Gradience.gschema.xml.in feat: begin favourite support 2022-09-25 23:04:21 +02:00
gradience.gresource.xml refactor: change views names to better describe what are they 2022-10-10 22:40:44 +02:00
meson.build fix: remove gnome-shell 2022-10-08 00:30:49 +02:00
style.css feat: remove most of the badge colors and use only black and white 2022-09-24 20:51:39 +02:00