mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-23 04:13:20 +00:00
Non-explosive gnome wallpaper adapter checking
This commit is contained in:
parent
a6867b360d
commit
067ef6d169
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ class GnomeProvider(_WProv):
|
||||||
f'picture-uri "file://{path}"')
|
f'picture-uri "file://{path}"')
|
||||||
|
|
||||||
def is_compatible() -> bool:
|
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__():
|
def __str__():
|
||||||
return "GNOME Shell Desktop"
|
return "GNOME Shell Desktop"
|
||||||
|
|
Loading…
Reference in a new issue