summaryrefslogtreecommitdiffstats
path: root/flplay
blob: da33d222a43b4ba26bf644f4868bf59d709b2be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/zsh
fpid=$(pidof plugin-container)

fd=$(lsof | grep $fpid | /bin/grep '(deleted)' | /bin/grep FlashX |  /bin/grep -o '[0-9]*u ' | head -1)

fd=$fd[1,-3]

print /proc/$fpid/fd/$fd

[[ -n $1 ]] && exit

mplayer /proc/$fpid/fd/$fd