get-windows icon indicating copy to clipboard operation
get-windows copied to clipboard

always undefined on tilda shell open

Open molavy opened this issue 3 years ago • 2 comments

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

molavy avatar Dec 02 '21 16:12 molavy

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; //}

molavy avatar Dec 02 '21 17:12 molavy

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

SukuWc avatar Mar 21 '22 18:03 SukuWc