On cmd_init we set the configuration of gpg-agent to pinentry-program /usr/bin/pinentry-tty. Maybe the initialization for the GUI case should be a bit different (for example if we run egpg gui init instead of egpg init).
In this case the package pinentry-gtk2 or pinentry-gnome3 becomes a dependency.
Or maybe we can add the configuration of pinentry on Setting, so that the user can choose which one to use.