Skip to content

fix(open-with): allow path handlers on GVfs FUSE mounts - #7

Draft
wmfeht wants to merge 4 commits into
mainfrom
cursor/fix-688-open-with-fuse-path-001f
Draft

wmfeht wants to merge 4 commits into
mainfrom
cursor/fix-688-open-with-fuse-path-001f

Conversation

@wmfeht

@wmfeht wmfeht commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Description

Open and Open With treated every non-native GIO file as URI-only after lgse#578. That is correct for Trash (path() is None) but too strict for GVfs FUSE mounts (sftp://, smb://) that still have a local path under /run/user/$UID/gvfs/.

Handler listing, the MIME default (must_support_uris), and path-only launch now key off file.path().is_none() instead of !file.is_native(), so %f/%F apps and a configured path default work when GIO provides a FUSE path. Trash stays URI-only.

Visual evidence

N/A — handler filtering and default lookup, no visual chrome change.

How to test

  1. Mount an sftp or smb share so gio info shows a local path: under /run/user/…/gvfs/ while is_native is false.
  2. Register a text/plain default with Exec=… %F and an optional %U handler.
  3. In Strata, Open and Open With a text file on that share.
  4. Repeat on a Trash item (trash:/// has no path).

Expected result: FUSE-backed files list and launch path-capable apps, including the configured %F default. Trash still lists only URI-capable handlers (%u/%U).

Related issue

Closes lgse#688

Open in Web Open in Cursor 

Require URI-capable Open/Open With handlers only when GIO has no local
path. GVfs FUSE mounts are non-native and still have a path, so %f/%F
apps and a configured path default can open them. Trash stays URI-only.

Refs lgse#688
@wmfeht
wmfeht force-pushed the cursor/fix-688-open-with-fuse-path-001f branch from beb90a2 to 479f5b1 Compare September 10, 2026 22:43
@github-actions
github-actions Bot force-pushed the main branch 17 times, most recently from 51fba50 to b415eb6 Compare September 20, 2026 05:00
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.

fix(open-with): GVfs FUSE mounts hide %f/%F apps and skip the path default

2 participants