I have a gpg file I occasionally need to access from ubuntu 18.04 gnome desktop or xfce desktops in linux, or via a terminal in an ssh session. On the gnome desktop, everything works reasonably easily, a new desktop window pops up for password entry, however on xfce there is typically at 10+ second wait for the window to appear, and when in a terminal, I never get prompted for password entry and the gpg request just times out.
Is there any way to access gpg more quickly? Perhaps entirely from within gpg and the shell (I suspect the problem somehow is with the gui aspect of the desktop).
I am using GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian.
EDIT: delay is 25 sec