ZIm/crates/zed/resources
tims 4bf59393ec
linux: Fix Zed not visible in "Open With" list in file manager for Flatpak (#21177)
- Closes #19030

When `%U` is used in desktop entries, file managers pick this and use
it:

- When you right-click a file and choose "Open with..."
- When you drag and drop files onto an application icon

<img
src="https://github.com/user-attachments/assets/ea5aa008-b81c-4f10-9302-b82332f6b174"
width="200px" alt="image">

Adding it to CLI args, changes Flatpak desktop entry `Exec` from:

```diff
- Exec=/usr/bin/flatpak run --branch=master --arch=x86_64 --command=zed dev.zed.ZedDev --foreground
+ Exec=/usr/bin/flatpak run --branch=master --arch=x86_64 --command=zed --file-forwarding dev.zed.ZedDev --foreground @@u %U @@
```

This is Flatpak's way of doing `%U`, by adding `--file-forwarding` and
wrapping arg with `@@u` and `@@`.
Read more below
([source](https://docs.flatpak.org/en/latest/flatpak-command-reference.html)):

> --file-forwarding
>
> If this option is specified, the remaining arguments are scanned, and
all arguments that are enclosed between a pair of '@@' arguments are
interpreted as file paths, exported in the document store, and passed to
the command in the form of the resulting document path. Arguments
between "@@u" and "@@" are considered URIs, and any "file:" URIs are
exported. The exports are non-persistent and with read and write
permissions for the application.

Release Notes:

- Fixed Zed not visible in the "Open with" list in the file manager for
Flatpak.
2024-11-29 22:59:04 +02:00
..
flatpak linux: Fix Zed not visible in "Open With" list in file manager for Flatpak (#21177) 2024-11-29 22:59:04 +02:00
info Revert "Introduce a new ToggleGraphicsProfiler command (#7607)" (#8567) 2024-02-28 16:39:51 -07:00
windows windows: Move manifest file to gpui (#11036) 2024-04-26 13:56:48 -07:00
app-icon-dev.png dev build: Change color of icons (#17486) 2024-09-06 11:47:19 +02:00
app-icon-dev@2x.png dev build: Change color of icons (#17486) 2024-09-06 11:47:19 +02:00
app-icon-nightly.png Resize Nightly icons to same scale as Stable/Preview 2024-01-20 17:27:37 +01:00
app-icon-nightly@2x.png Resize Nightly icons to same scale as Stable/Preview 2024-01-20 17:27:37 +01:00
app-icon-preview.png icon updates 2023-07-26 11:19:34 -06:00
app-icon-preview@2x.png icon updates 2023-07-26 11:19:34 -06:00
app-icon.png Update app-icon.png 2023-02-26 11:03:31 -05:00
app-icon@2x.png Update app-icon@2x.png 2023-02-26 11:03:43 -05:00
zed.desktop.in linux: Remove inode/directory from supported MIME types (#16940) 2024-08-28 20:16:52 -07:00
zed.entitlements Re-enable language plugin functionality with some fixes (#7105) 2024-01-30 19:59:13 -08:00