yad --notification ... --listen (middle button exit - why not optional)

340 views
Skip to first unread message

Edward

unread,
May 20, 2012, 4:15:58 PM5/20/12
to yad-common
My problem is that my application needs a notification icon that
doesn't close with any kind of mouse click!!!

I used yad in a bash script to show an icon on systray of Ubuntu 12.04
when a webcam is inserted, but when I click with the middle mouse
button in the icon it generates a "quit" entry to the option --listen
of the yad --notification command and the icon goes away.

Here I solved that with a workaround...
I put a "while" in the following way and it worked...

exec 3> >(saida=252; while [ $saida -eq 252 ]; do yad --notification
--image=$HOME/bin/cameramonitor.xpm --text="Webcam ON!" --listen;
saida=$?; done)

...
...
...

exec 3>&-

That is not the ideal solution, so my suggestion is:
To have a way, in yad, to avoid that the middle mouse button generates
a "quit"entry to the --listen option!

Ie, it would be nice if the exit with the middle mouse button was
optional!

Victor Ananjevsky

unread,
May 21, 2012, 9:39:05 AM5/21/12
to yad-c...@googlegroups.com
В Sun, 20 May 2012 13:15:58 -0700 (PDT)
Edward <ege...@gmail.com> писал:
i think, there always must be a way to correctly close an application.
that's why i added fixed middle-click behavior to yad. middle-click is
hard to accidentally generate, that's why i choose it. but i'll add an
option to disable this feature in a next releases

--
Victor Ananjevsky <anan...@gmail.com>
Reply all
Reply to author
Forward
0 new messages