-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to start when no emacsclient frames are open #27
Comments
I found an issue like this occurred when I was caching environmental variables and the |
I don't really know. I can't figure out how to get a backtrace because all the methods for getting backtraces I know about require that a frame is open. |
I am also having this issue, and I am on Linux, Doom Emacs, and Emacs 27.2 |
Also having this issue |
I looked into this again and I think I found the root cause of the issue. Running |
I'm experiencing this on Fedora 34 with Gnome. |
Restarting the systemd user service I use for Emacs server with Either way, this seems to work: emacsclient --eval "(setenv \"DISPLAY\" \"$DISPLAY\")" --eval '(emacs-everywhere)' |
Actually I am too after a reboot. I guess I restarted Emacs since the last reboot and assumed it always worked in GNOME. |
I'm beginning to feel like an FAQ / Fixes for common issues section would be a good addition to the readme. Or maybe a GH wiki page that's publically editable? |
Any luck @io12? What's interesting is I've had an emacs-everywhere popup work randomly from other programs, but any attempt to bind it to a key fails, and even getting a result back from any |
It appears there's an issue with $ xdotool getactivewindow
XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1)
xdo_get_active_window reported an error |
Interesting, thanks for digging that up. I wonder what's going on with that... |
So far I think this is related to Wayland, doesn't look like |
Same issue on Arch + i3 setup. I have the keybinding like this: Even after doing sytemclt restart service or adding |
I've found this: https://dev.suckless.narkive.com/Pr5qxYcw/xid-of-a-current-window Replacing It still cannot paste into the text-box but leaves it in the clipboard which is good enough for me Update: ydotool seems to support |
Looking at
|
psibi/emacs-everywhere#2 (comment) I need to find a working solution. I use gnome Wayland and am not planning to go back to Xorg. wtype seems to be packaged for all major distros. I am guessing it doesn't need access to |
Oh, you commented there at the same(ish) time. Oh well 😛 |
Found that one later, when looking for closed issues😅 |
I don't know if this can help, but I am on Fedora 36 Wayland and |
So, the current status of |
Not working, I don't see a chance of it working if is not specifically implemented since it uses heavily X11 specific tools. |
It might be slightly off-topic, but here's a potentially related clue. Recently, when I was trying to add Windows support to emacs-everywhere, I encountered a similar issue. In fact, the issue can be reproduced without using emacs-everywhere on Windows with the following code: (defun test ()
(apply #'call-process "emacsclient" nil 0 nil
'("-c"))) and executing However, when I replaced |
If there are no open emacsclient frames, then running
emacsclient --eval "(emacs-everywhere)"
outputs
When there is at least one emacsclient frame open, this problem doesn't happen.
I am using Linux and Emacs 27.2.
The text was updated successfully, but these errors were encountered: