Non-explosive gnome wallpaper adapter checking

This commit is contained in:
Samuel Henrique Oliveira da Silva 2017-11-19 23:02:16 -02:00
parent a6867b360d
commit 067ef6d169

View file

@ -8,7 +8,8 @@ class GnomeProvider(_WProv):
f'picture-uri "file://{path}"')
def is_compatible() -> bool:
return "gnome" in _os.environ.get("GDMSESSION")
return (_os.environ.get("GDMSESSION") is not None and
"gnome" in _os.environ.get("GDMSESSION").lower())
def __str__():
return "GNOME Shell Desktop"