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

Nautilus doesn't launch from desktop file with D-Bus session without setting DBusActivatable=false #48242

Open
blacklightpy opened this issue Jan 16, 2024 · 0 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@blacklightpy
Copy link

Is this a new report?

Yes

System Info

Void 6.6.10_1 x86_64-musl GenuineIntel notuptodate rFF

Package(s) Affected

nautilus-44.2.1_1 dbus-glib-0.112_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

I didn't find any.

But kind of, here, which says setting DBusActivatable=true ignores Exec= line. I found this from Arch Wiki page on desktop entries.

Expected behaviour

Open Nautilus from desktop or by terminal. Try open a file with Kate, VLC, feh, etc. It opens.

Actual behaviour

Files does not open with Kate, VLC, feh, etc.

However, using GNOME Text Editor to open a text file worked. Meaning, GNOME apps work.

This was initially the case with opening Nautilus from terminal or from the application icon. But I mention in the next section, now launching nautilus from terminal doesn't have this issue.

Steps to reproduce

Note

  • In between I do pkill nautilus to ensure it isn't the old session
  • Thunar doesn't have dbus-glib as a dependency, but it still is able to open with non-GNOME apps.

First Attempt

  1. Install nautilus

A. Open it from app launcher (desktop icon) / gtk-launch / gio launch

  1. Try to open file with Kate - NOTHING HAPPENS

B. Open it from terminal normally (nautilus)

  1. Try to open file with Kate - NOTHING HAPPENS

C. Open it from terminal with dbus-run-session (dbus-run-session nautilus)

  1. Try to open file with Kate - WORKS

Finding workaround

I did xbps-query -Rs dbus and found dbus-glib, qt5-dbus, etc. Dolphin depends on qt5-dbus. So I tried installing dbus-glib.

A. Open Nautilus from terminal normally (nautilus)

  1. Try to open file with Kate - WORKS

B. Open Nautilus from app launcher (desktop icon) / gtk-launch / gio launch

  1. Try to open file with Kate - NOTHING HAPPENS

I check the desktop file. I read somewhere (including Arch Wiki) while googling for this to try disabling DBusActivatable. So I try doing that, and set DBusActivatable=false (it was true)

C. Again open Nautilus from app launcher (desktop icon) / gtk-launch / gio launch

  1. Try to open file with Kate - WORKS

The terminal version of the command has no change. Now I uninstall dbus-glib to check once again. Now:

  • Terminal version doesn't work anymore without dbus-run-session
  • Desktop File version does not work when even if DBusActivatable=false

Magic Happens

I install and uninstall dbus-glib a couple of times to check the effects. In the end, the behaviour is different:

  • Terminal version just works
  • Desktop File version works if DBusActivatable=false

Somehow it feels like it's running with D-Bus even though I didn't specify it manually, even in the absence of dbus-glib.

@blacklightpy blacklightpy added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

1 participant