A workaround for the bug in remote GtkApplications

- https://bugzilla.gnome.org/show_bug.cgi?id=682331
- https://bugzilla.gnome.org/show_bug.cgi?id=694803

Signed-off-by: Jakub Filak <jfilak@redhat.com>