Skip to content

feat(providers): add direct sharing to KDE Connect devices - #1704

Merged
l0gicgate merged 14 commits into
lgse:mainfrom
HopelessBhai:feat/1703-kdeconnect-provider
Oct 18, 2026
Merged

l0gicgate merged 14 commits into
lgse:mainfrom
HopelessBhai:feat/1703-kdeconnect-provider

Conversation

@HopelessBhai

@HopelessBhai HopelessBhai commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add an opt-in KDE Connect external provider under contrib/providers/kdeconnect, with installation instructions and localized messages. With one paired, reachable sharing device, Send to via KDE Connect submits the whole file selection directly. With multiple devices, Send via KDE Connect opens Strata's native hover/keyboard submenu. No device-picker window opens; no eligible devices means no sharing entry.

Activation rechecks the exact files and device, pins the daemon's unique D-Bus owner, and consumes its selection token before submission. Uncertain sends are never retried automatically. This uses the existing provider protocol and adds no default KDE/Python dependency. It supports regular native UTF-8 files, up to 200 files and 63 devices. Submission is not confirmed receipt; physical-device delivery remains unverified.

Visual evidence

image image

How to test

  1. Install KDE Connect and system Python/PyGObject, enable file sharing for your paired devices, then run /usr/bin/python3 contrib/providers/kdeconnect/install.py. Close all Strata windows and reopen it.
  2. Right-click disposable local files with no reachable paired device: no KDE Connect section should appear.
  3. Connect one device and use Send to via KDE Connect. The entire selection goes directly to it; check KDE Connect's progress and verify the files on the device.
  4. Connect a second device. Hover Send via KDE Connect, or focus it with the keyboard and press Right, then select the intended device. Verify a multi-file selection reaches that device.
  5. Disconnect devices while the menu stays open. Their entries should disappear; after the last disconnect the section should disappear. Replaced/edited files or stale targets must be rejected, without redirecting to another device.

Expected result: device choice stays in the context menu. Accepted submissions produce only a brief notice; failures and uncertain results remain explicit. Normal installations remain unchanged until the provider is installed.

Related issue

Closes #1703

@HopelessBhai
HopelessBhai force-pushed the feat/1703-kdeconnect-provider branch from 0052c33 to 5baa999 Compare October 16, 2026 04:06
@l0gicgate

Copy link
Copy Markdown
Contributor

@HopelessBhai please upload video evidence

…ns catalog

The provider now ships as integrations/kdeconnect with a catalog entry
maintained by @HopelessBhai, so it is installed, updated and removed
from Settings → Integrations instead of install.py. The page checks for
kdeconnect-cli and PyGObject and shows the package for each
distribution. Tests move under tests/ so they are not installed and run
in the Integrations workflow, which replaces the E2E unit wrapper; the
GUI scenario stays. The entry's name and description are added to every
Strata catalog.

Refs lgse#1703
zh_HK and zh_MO map to Traditional Chinese, as they do in Strata.
Missing requirements get the play button Diagnostics already offers,
moved into a shared helper so each page says what to do once the
command finishes. The page no longer shows each entry's maintainer;
catalog.toml still records it for the repository.
Rows and cards used 9px or 0 vertical against 18px horizontal padding,
and an Integrations rule never applied because the generic one came
later. Every settings box now uses 18px on all sides, or 10px in the
compact layout, and minimum heights that stacked on top of the padding
are removed.
The mock ran in the worker's process group, so terminate() signalled a
group that did not exist and the mock kept owning org.kde.kdeconnect on
the shared session bus. The next scenario's mock could not start.
ManagedProcess gives it its own session.
Installed registrations, from the catalog or by hand, are listed first
with their switch, Update and Remove. The catalog follows as a grid of
equal-height cards with category filters and search, built from the
theme library's search field and the action library's filter chips.
Each card shows Install or Installed and a requirements footer that
names what is missing and expands to the checks and install command.
The catalog loses its search, cards their category tag, and installed
rows their tags and subtitle. The requirements footer shows a check or
an X instead of naming what is missing; expanding it still lists every
requirement and the install command.
Each eligible device is now a send-to destination named after the
device, grouped under KDE Connect in Send to…, instead of a direct
"Send to <device> via KDE Connect" action or a "Send via KDE Connect"
submenu. Devices still appear and disappear live, and activation keeps
its exact-device routing and staleness checks.
Installed rows show "Installed via catalog" or "Manually installed"
under their name.
Destinations a provider places in Send to… now sit in a submenu named
after the provider, like a removable drive, instead of under a muted
group heading. The submenu shows the provider's artwork, or an icon for
the category catalog installs now record in provider.json, so KDE
Connect gets a phone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(providers): add direct sharing to KDE Connect devices

2 participants