Bugswriter / notflix

Notflix is a shell script to search and stream torrent.
GNU General Public License v3.0
1.9k stars 176 forks source link

'cannot grab keyboard' and error out #36

Open anwar3606 opened 2 years ago

anwar3606 commented 2 years ago
➜  anwar notflix
cannot grab keyboard

Any idea why?

alpheratz0 commented 2 years ago

Are you running wayland or X11?

anwar3606 commented 2 years ago

yes x11

alpheratz0 commented 2 years ago

yes x11

Please provide the output of this command bash -x ./path/to/notflix to see whats going wrong

anwar3606 commented 2 years ago
➜  anwar bash -x notflix
+ mkdir -p /home/anwar/.cache/notflix
+ menu='dmenu -i -l 25'
+ baseurl=https://1337x.wtf
+ cachedir=/home/anwar/.cache/notflix
+ '[' -z ']'
++ dmenu -p 'Search Torrent: '
cannot grab keyboard
+ query=
++ echo
++ sed 's/ /+/g'
+ query=
+ curl -s https://1337x.wtf/search//1/
+ grep -o '<a href="/torrent/.*</a>' /home/anwar/.cache/notflix/tmp.html
+ sed 's/<[^>]*>//g'
++ wc -l /home/anwar/.cache/notflix/titles.bw
++ awk '{print $1}'
+ result_count=0
+ '[' 0 -lt 1 ']'
+ notify-send '😔 No Result found. Try again 🔴' -i NONE
+ exit 0

I get this

alpheratz0 commented 2 years ago

Ok, dmenu is showing that error, which operating system are you using?

Jitendra300 commented 2 years ago

Ok, dmenu is showing that error, which operating system are you using?

For me too it's showing this error, it's not grabing the keyboard

and yay I use debian 11, gnome wayland...