mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-09-29 15:07:54 +00:00
Merge branch 'main' into pypi-deps
This commit is contained in:
commit
0891ca7c74
1 changed files with 13 additions and 8 deletions
|
@ -114,11 +114,16 @@ class FirefoxGnomeTheme2Plugin(IPlugin):
|
|||
return False
|
||||
|
||||
def apply(self, dark_theme=False):
|
||||
try:
|
||||
with (
|
||||
next(Path("~/.mozilla/firefox").expanduser().glob("*.*"))
|
||||
/ "chrome/firefox-gnome-theme/customChrome.css"
|
||||
).open("w") as f:
|
||||
f.write(self.template.format(**self.variables))
|
||||
except OSError:
|
||||
pass
|
||||
for path in ["~/.mozilla/firefox", "~/.librewolf",
|
||||
"~/.var/app/org.mozilla.firefox/.mozilla/firefox",
|
||||
"~/.var/app/io.gitlab.librewolf-community/.librewolf"]:
|
||||
try:
|
||||
with (
|
||||
next(Path("firefox").expanduser().glob("*.*"))
|
||||
/ "chrome/firefox-gnome-theme/customChrome.css"
|
||||
).open("w") as f:
|
||||
f.write(self.template.format(**self.variables))
|
||||
except OSError:
|
||||
pass
|
||||
except StopIteration:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue