get-windows
get-windows copied to clipboard
always undefined on tilda shell open
Hi there there is issue on detect apps in linux for example for tilda app it return always undefined maybe this module can help in this case https://github.com/nullxx/electron-active-window it return app name tilda
i solved my issue by change this line lib/linux.js from title: JSON.parse(result['_NET_WM_NAME(UTF8_STRING)'] || result['WM_NAME(STRING)']) || null, to title: JSON.parse(result['_NET_WM_NAME(UTF8_STRING)'] || result['WM_NAME(STRING)'] || result['WM_CLASS(STRING)'].split(',').pop()) || null,
and comment this lines //if (!activeWindowId) { // return; //}
i noticed that it returns undefined when '=' is in the title, for example in a browser if i google the string "1+1=" Could this be a similar issue?
Firefox/Ubuntu