|
|
@ -87,9 +87,13 @@ ENABLED_SETTINGS = [ |
|
|
|
|
|
|
|
|
|
|
|
def getDefaultCursor(): |
|
|
|
def getDefaultCursor(): |
|
|
|
cursor_theme = "" |
|
|
|
cursor_theme = "" |
|
|
|
file = open("/usr/share/icons/default/index.theme") |
|
|
|
matched = None |
|
|
|
matched = re.search(r"Inherits=.*", file.read()) |
|
|
|
try: |
|
|
|
file.close() |
|
|
|
file = open("/usr/share/icons/default/index.theme") |
|
|
|
|
|
|
|
matched = re.search(r"Inherits=.*", file.read()) |
|
|
|
|
|
|
|
file.close() |
|
|
|
|
|
|
|
except Exception: |
|
|
|
|
|
|
|
return "" |
|
|
|
if not matched: |
|
|
|
if not matched: |
|
|
|
logger.error("Default cursor couldn't be get") |
|
|
|
logger.error("Default cursor couldn't be get") |
|
|
|
return "" |
|
|
|
return "" |
|
|
|