CristianHenzel / ClipIt

ClipIt clipboard manager for GTK+
https://github.com/CristianHenzel/ClipIt
GNU General Public License v3.0
648 stars 84 forks source link

Returning if string dooesn't exist on stdin. Fixes "Binding failed" #77

Closed mananaBanana closed 6 years ago

mananaBanana commented 6 years ago

clipit gives a "Binding ... failed" warning if the input of pipe doesn't exist. eg. cat non_existent_file | clipit gives you the warning. Returning -1 when such a thing happens before it executes clipit_init(). Maybe you could add a separate warning message here.