MCPcopy
hub / github.com/mherrmann/fbs / _get_linux_distribution

Function _get_linux_distribution

fbs_runtime/platform.py:65–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 return _state.LINUX_DISTRIBUTION
64
65def _get_linux_distribution():
66 if not is_linux():
67 return ''
68 try:
69 os_release = _get_os_release_name()
70 except OSError:
71 pass
72 else:
73 if os_release:
74 return os_release
75 return '<unknown>'
76
77def is_gnome_based():
78 curr_desktop = os.environ.get('XDG_CURRENT_DESKTOP', '').lower()

Callers 1

linux_distributionFunction · 0.85

Calls 2

is_linuxFunction · 0.85
_get_os_release_nameFunction · 0.85

Tested by

no test coverage detected