fromLinuxString static method
Implementation
static ActiveWindowInfo fromLinuxString(String map) {
final values = map.split('\n');
final wmClass = _getValue(values, 'WM_CLASS', split: ',');
return ActiveWindowInfo(
title: _getValue(values, 'WM_NAME(')!,
bundleId: _getValue(values, '_GTK_APPLICATION_ID(UTF8_STRING)') ?? wmClass,
appName: wmClass,
userName: Platform.environment['USER'],
);
}