mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-01 00:49:56 +00:00
fix: plugin error
This commit is contained in:
parent
45ce557452
commit
bcac517c58
|
@ -56,8 +56,12 @@ class FirefoxGnomeTheme2Plugin(IPlugin):
|
|||
return False
|
||||
|
||||
def apply(self, dark_theme=False):
|
||||
with (
|
||||
next(Path("~/.mozilla/firefox").expanduser().glob("*.*"))
|
||||
/ "chrome/firefox-gnome-theme/customChrome.css"
|
||||
).open("w") as f:
|
||||
f.write(self.template.format(**self.variables))
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue