Skip to content
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

dbus-call-method: D-Bus error: "The name org.gnome.Shell was not provided by any .service files" #1083

Open
yglukhov opened this issue Mar 29, 2023 · 12 comments
Labels
help wanted Extra attention is needed

Comments

@yglukhov
Copy link

Describe the bug
Getting errors in Messages buffer:

dbus-call-method: D-Bus error: "org.freedesktop.DBus.Error.ServiceUnknown", "The name org.gnome.Shell was not provided by any .service files"

To Reproduce
Open eaf-browser

Expected behavior
No errors in Messages

Versions (please complete the following info):

  • Distro and DE/WM: Arch, KDE Plasma, X11
  • M-x emacs-version:

Error logs
No errors in *eaf*

Additional context
I'm suspecting the error I'm seeing is because I'm using KDE instead of Gnome?

@manateelazycat
Copy link
Member

What's result of (eaf-emacs-running-in-wayland-native) in your system?

@yglukhov
Copy link
Author

What's result of (eaf-emacs-running-in-wayland-native) in your system?

nil

@manateelazycat
Copy link
Member

Did you running EAF in terminal ?

@yglukhov
Copy link
Author

No, I'm running it in emacs gui on KDE, X11.

@manateelazycat
Copy link
Member

Strange...

@Szkered
Copy link

Szkered commented May 30, 2023

I am having the same issue. Running emacs gui on Xmonad.

@hirn-lego
Copy link

I am having this issue too.
Running emacs gui on qtile with X11

@tylerwolf35
Copy link

tylerwolf35 commented Jun 4, 2023

I am also having this issue with emacs gui on xmonad when I use emacs daemon.

When I do not use emacs daemon, I don't get this issue, however I cannot use eaf as whenever I try to open it it just says "opening in status bar" and nothing happens. If I do open in new window I get the same thing and the new window just has my start screen.

@manateelazycat
Copy link
Member

Something wrong on checking DE or WM, that cause Gnome3 dbus check on non-Gnome3.

I use Gnome XWayland, I haven't time to digg other WM recently, sorry guys.

PR are welcome!

@tylerwolf35
Copy link

I have been able to get around this error, yet launching an EAF application still loads infinitely.

Should I open a new issue?

@jvdydev
Copy link

jvdydev commented Jun 18, 2023

Just chiming in as someone who found this while troubleshooting for another Emacs user.
For sway users, XDG_CURRENT_DESKTOP may not be set for some reason, so setting that to "sway" should work.

As for other WM/DEs, it seems these two functions seem to be the culprit (or at least one of them):

  • eaf--topmost-focus-change in eaf.el (line 1053)
  • eaf--get-frame-coordinate in eaf.el (line 1178)

Unless you're on macOS, sway or Hyprland, these default to a dbus call to org.gnome.Shell.

I personally do not use EAF, just figured I'd share my findings.

@manateelazycat manateelazycat added the help wanted Extra attention is needed label Oct 22, 2023
@EdmondFrank
Copy link
Contributor

Just chiming in as someone who found this while troubleshooting for another Emacs user. For sway users, XDG_CURRENT_DESKTOP may not be set for some reason, so setting that to "sway" should work.

As for other WM/DEs, it seems these two functions seem to be the culprit (or at least one of them):

  • eaf--topmost-focus-change in eaf.el (line 1053)
  • eaf--get-frame-coordinate in eaf.el (line 1178)

Unless you're on macOS, sway or Hyprland, these default to a dbus call to org.gnome.Shell.

I personally do not use EAF, just figured I'd share my findings.

Indeed it is basically caused by these functions, other WMs can try to refer to this PR #1119 to tweak the implementation.
Generally just implement eaf--topmost-focus-change is enough, for another similar method, there will be a default value and it usually works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants