"Open" in GUI generates code in terminal

Pressing the open button in the guy will print all the code for the
given path into the console.