Skip to content

feat(providers): add a Nextcloud desktop context menu - #1670

Closed
yaeloss wants to merge 1 commit into
lgse:mainfrom
yaeloss:feat/1668-nextcloud-desktop-menu
Closed

yaeloss wants to merge 1 commit into
lgse:mainfrom
yaeloss:feat/1668-nextcloud-desktop-menu

Conversation

@yaeloss

@yaeloss yaeloss commented Oct 14, 2026 •

Copy link
Copy Markdown

Description

Adds an optional Nextcloud desktop provider. Strata does not implement sharing. The provider asks the running desktop client which actions apply to a path, then sends the chosen command back over the client's local shell-integration socket. Share options and the other windowed entries open the client's own windows. Copy-link actions ask the client to copy the link. Sync state is shown as the provider badge.

python3 providers/nextcloud/install.py copies the adapter to $XDG_CONFIG_HOME/strata/providers/nextcloud. When the desktop client's status icons are installed, the installer copies those icons beside the manifest. The icons are not stored in this repository. Restart Strata after installing. Remove that directory and restart Strata to uninstall.

The sync folder itself has no share action, because that is the client's rule. Items outside a synced folder are unchanged. The desktop client has to be running.

Visual evidence

strata-nextcloud-menu

How to test

  1. Install and run the Nextcloud desktop client, with at least one folder synced.
  2. From this branch, run python3 providers/nextcloud/install.py.
  3. Restart Strata and open the synced folder.
  4. Right-click a file or folder inside the sync. Confirm a Nextcloud section lists the actions the client returns, such as Share options, Copy internal link, Open in browser, and File actions, and that the item shows the client's sync badge.
  5. Right-click the sync folder itself and confirm it has no share action. Right-click an item outside the sync and confirm the Nextcloud section is absent.
  6. Choose Share options and confirm the client's own share window opens.
  7. Run python3 scripts/test_nextcloud_provider.py.

Expected result: Menu entries and badges come from the desktop client. Choosing an action hands that command back to the client. The unit tests pass, including a fake client that receives SHARE with no extra Strata dialog.

Related issue

Closes #1668

@l0gicgate

Copy link
Copy Markdown
Contributor

We will not be merging this into the repo. These implementations are meant for you, or someone to maintain outside of the Strata repo.

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: optional Nextcloud desktop context menu

2 participants