Commit graph

16 commits

Author SHA1 Message Date
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
Jesse Milette
ddef0bde7a remove print 2022-10-11 11:20:16 -04:00
Jesse Milette
4bd56797f4 Correctly parse multiple profiles 2022-10-11 11:15:04 -04:00
0xMRTT
74747818f7
fix: update firefox plugin search dir 2022-10-03 19:13:33 +02:00
0xMRTT
567e57b513
fix: add homepage wip 2022-09-29 00:09:04 +02:00
deepsource-autofix[bot]
ac5395484c
Format code with black and autopep8
This commit fixes the style issues introduced in bcac517 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/6ddad5a3-f1ef-445c-abf4-81c018383272/
2022-09-27 16:55:10 +00:00
0xMRTT
bcac517c58
fix: plugin error 2022-09-27 18:54:50 +02:00
0xMRTT
3b229a088a
fix: add no preferences window 2022-09-26 23:33:06 +02:00
0xMRTT
d429c7bf6e
fix: update firefox gnome theme 2022-09-26 21:33:35 +02:00
deepsource-autofix[bot]
d5501996a5
Format code with black and autopep8
This commit fixes the style issues introduced in 358cd41 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/936b0b83-12eb-4103-a3f4-3f142542db0a/
2022-09-25 21:11:04 +00:00
0xMRTT
358cd41f9f
fix: update firefox gnome theme plugin (see Plugins repo) 2022-09-25 23:10:50 +02:00
deepsource-autofix[bot]
b700aac43d
Format code with black and autopep8 2022-09-23 16:53:32 +00:00
deepsource-autofix[bot]
2caf62c789
Refactor unnecessary else / elif when if block has a return statement 2022-09-23 16:53:22 +00:00
deepsource-autofix[bot]
4289a6086e
Format code with black and autopep8
This commit fixes the style issues introduced in 8bf32aa according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/cc444fc5-ea75-4fb7-8fc3-a68e922e413e/
2022-09-23 11:14:21 +00:00
b1cb6c918e
fix: remove prints 2022-09-22 19:55:29 +02:00
3a708fe173
feat: add builtin plugin 2022-09-22 19:55:28 +02:00