Skip to content

fix(diagnostics): warn when KDE's MTP service competes for phones - #2523

Merged
l0gicgate merged 1 commit into
mainfrom
fix/2418-kde-mtp-conflict
Nov 16, 2026
Merged

l0gicgate merged 1 commit into
mainfrom
fix/2418-kde-mtp-conflict

Conversation

@l0gicgate

Copy link
Copy Markdown
Contributor

Description

On KDE Plasma, kio-extras' MTP daemon (org.kde.kmtpd5, which runs inside kiod6) and gvfs-mtp both try to claim an Android phone when it is plugged in. Whichever loses sees the phone with no storage. Strata then shows an empty volume, or Dolphin tells the user to tap Allow on the phone.

  • Settings → Diagnostics → Android devices (MTP) now shows a warning with the workaround when the GVfs MTP backend is installed and org.kde.kmtpd5 is owned or activatable on the session bus. kio-extras installs that D-Bus service file on every distribution, so the check doesn't depend on plugin paths.
  • The README's "Connecting phones" section explains the conflict and the pkill -x kiod6 workaround (kiod5 on Plasma 5).
  • The new message is translated into all 13 languages. I split the Diagnostics message lookup into a formatter for messages with values and a table of fixed sentences, which keeps the file's code health from dropping.

Visual evidence

N/A: agents can't upload attachments. The only visible change is one new warning message on the MTP row in Settings → Diagnostics.

How to test

  1. On KDE Plasma 6 with kio-extras and gvfs-mtp installed, open Settings → Diagnostics and select Run.
  2. Look at Android devices (MTP).
  3. Optionally: open Dolphin, then plug in an unlocked phone set to File transfer and open it in Strata. The volume is empty. Unplug the phone, run pkill -x kiod6, and plug it back in.

Expected result: The MTP row shows a warning that KDE's MTP service is also installed, with the workaround. Without kio-extras, or on a desktop without it, the row still passes. After the workaround, Strata lists the phone's Internal storage.

Related issue

Closes #2418

On KDE Plasma, kio-extras' MTP daemon (org.kde.kmtpd5, hosted by kiod6)
and gvfs-mtp both claim an Android phone at plug-in, and the loser sees
it with no storage. The MTP diagnostic now warns when the GVfs backend is
installed and that service is owned or activatable on the session bus,
and the README's "Connecting phones" section explains the conflict and
the pkill -x kiod6 workaround.

The Diagnostics message lookup is split into formatted messages and a
fixed-sentence table to keep the function small.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android over USB on KDE Plasma: gvfs-mtp and KDE's kio-mtp fight over the phone

1 participant