Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Nautilus doesn't launch from desktop file with D-Bus session without setting `DBusActivatable=false`
@ 2024-01-16 20:14 blacklightpy
  0 siblings, 0 replies; only message in thread
From: blacklightpy @ 2024-01-16 20:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3264 bytes --]

New issue by blacklightpy on void-packages repository

https://github.com/void-linux/void-packages/issues/48242

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](https://wiki.gnome.org/HowDoI/DBusApplicationLaunching#Changes_to_the_desktop_file), which says setting `DBusActivatable=true` ignores `Exec=` line. I found this from Arch Wiki page on [desktop entries](https://wiki.archlinux.org/title/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 <desktop-file-name> / gio launch <path-to-desktop-file>**
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 <desktop-file-name> / gio launch <path-to-desktop-file>**
1. Try to open file with Kate - NOTHING HAPPENS

I check the desktop file. I read somewhere (including [Arch Wiki](https://wiki.archlinux.org/title/desktop_entries)) 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 <desktop-file-name> / gio launch <path-to-desktop-file>**
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`.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-16 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 20:14 [ISSUE] Nautilus doesn't launch from desktop file with D-Bus session without setting `DBusActivatable=false` blacklightpy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).