This question already has an answer here:
I'm trying to set my desktop environment to use emacsclient to open text files.
I would like only one emacs x-window to be opened. Yet I don't know which command can be used to have an x-window created if and only if no emacs x-window already exists.
emacsclient %Fdoesn't work when no x-window exists.
emacsclient -c %Falways creates a new x-window.
I don't know how to check for the existence of an emacs x-window.
Which command / script should I use ?
By x-window I mean 'what a window is for the window-manager'