Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always undefined on tilda shell open #128

Open
molavy opened this issue Dec 2, 2021 · 2 comments
Open

always undefined on tilda shell open #128

molavy opened this issue Dec 2, 2021 · 2 comments

Comments

@molavy
Copy link

molavy commented Dec 2, 2021

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
Copy link
Author

molavy commented Dec 2, 2021

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

@SukuWc
Copy link

SukuWc commented Mar 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants