void-linux / void-linux/void-packages

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

Open
#48,242 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior through the Nautilus desktop file, gtk-launch, gio launch, and terminal commands described in the report, comparing runs with and without dbus-run-session and dbus-glib. Inspect the desktop file's DBusActivatable setting and verify whether launching Nautilus from the application entry allows files to open with Kate, VLC, and feh without a manual workaround.

Written by the indexing model from the issue text.

Assessment

Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.