gjs : How to read from stdin in a gtk application

In this blog post, I will show you how to read from stdin in a GTK application written with gjs. Since I was already using greenclip (with rofi ) for clipboard history, I would like to use Bender in a similar way. greenclip print | bender . As a beginner to GJS-GTK, my first challenge was to bootstrap a GTK app and read the data from stdin. For the first prototype, I used the…