Github messages for voidlinux
 help / color / mirror / Atom feed
From: blacklightpy <blacklightpy@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Nautilus doesn't launch from desktop file with D-Bus session without setting `DBusActivatable=false`
Date: Tue, 16 Jan 2024 21:14:01 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48242@inbox.vuxu.org> (raw)

[-- 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`.

                 reply	other threads:[~2024-01-16 20:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48242@inbox.vuxu.org \
    --to=blacklightpy@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).