Jonas Lundholm Bertelsen and Kirill Bulatov
5d8f8cbc67
cli: Fix Flatpak launcher argument ordering ( #61577 )
...
Closes https://github.com/zed-industries/zed/issues/62801
# Objective
Fix issue https://github.com/flathub/dev.zed.Zed/issues/395 (reported
against the flathub package, but as described in it, it was introduced
by https://github.com/zed-industries/zed/pull/57440 ).
The symptom was that when running `flatpak run dev.zed.Zed <project
path>` (or some alias), then you'd get two "files" opened `--zed` and
`zed-editor`, with `zed-editor` also being added to the Zed project list
in the open window, which was quite annoying.
## Solution
- The flatpak CLI launcher, which self-launches with potential extra
arguments, now puts those arguments first rather than last.
## Testing
- A simple unit test targets the helper function that adds the arguments
- It also verifies that the parsed args come out as expected
## Self-Review Checklist:
- [ x ] I've reviewed my own diff for quality, security, and reliability
- [ x ] Unsafe blocks (if any) have justifying comments
- [ x ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist )
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md )
guidelines)
- [ x ] Tests cover the new/changed behavior
- [ x ] Performance impact has been considered and is acceptable
Note: I believe that other bullets than self-review and tests are not
relevant, as there is no unsafe, no expected performance impact, and no
UI changes.
---
Release Notes:
- Fixed an issue where Flatpak CLI launches would open
unrelated/nonexistent files due to a bug in argument construction
Co-authored-by: Kirill Bulatov <kirill@zed.dev >
2026-08-20 16:37:31 +00:00
..
2026-07-31 19:57:13 +00:00
2026-08-20 10:08:48 +00:00
2026-07-31 19:57:13 +00:00
2026-08-13 17:07:06 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 12:40:18 +00:00
2026-06-08 14:57:47 +00:00
2026-08-20 11:48:31 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 03:44:43 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 14:32:19 +00:00
2026-08-19 14:32:19 +00:00
2026-08-20 10:08:48 +00:00
2026-07-27 15:59:19 +00:00
2026-08-20 10:08:48 +00:00
2026-06-01 04:40:13 +00:00
2026-08-20 10:08:48 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 16:37:31 +00:00
2026-08-09 22:29:52 +00:00
2026-08-19 14:07:46 +00:00
2026-07-30 14:55:00 +00:00
2026-07-15 13:14:36 +00:00
2026-07-06 22:12:33 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-06-05 10:32:57 +00:00
2026-08-20 10:08:48 +00:00
2026-06-05 10:32:57 +00:00
2026-05-29 07:06:57 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-05 13:42:28 +00:00
2026-07-30 10:34:16 +00:00
2026-07-14 21:47:47 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-04-24 10:29:51 +00:00
2026-05-13 23:35:10 +00:00
2026-08-20 10:08:48 +00:00
2026-08-14 09:38:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-07-15 13:14:36 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 12:15:06 +00:00
2026-06-05 19:24:28 +00:00
2026-07-13 16:37:28 +00:00
2026-04-07 12:28:19 -03:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 16:51:32 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-04 15:35:05 +00:00
2026-04-18 06:34:19 +00:00
2026-05-04 06:30:47 +00:00
2026-08-20 11:27:03 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 11:19:14 +00:00
2026-07-30 13:24:19 +00:00
2026-07-30 12:59:16 +00:00
2026-08-18 05:36:16 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 21:10:56 +00:00
2026-08-20 10:08:48 +00:00
2026-08-17 08:28:00 +00:00
2026-08-20 10:08:48 +00:00
2026-08-14 19:53:25 +00:00
2026-08-20 15:01:09 +00:00
2026-08-19 14:46:01 +00:00
2026-07-08 15:52:48 +00:00
2026-08-04 15:53:09 +00:00
2026-08-14 09:35:59 +00:00
2026-06-16 13:47:55 +00:00
2026-08-12 18:44:06 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 22:16:44 +00:00
2026-08-11 15:16:03 +00:00
2026-07-14 15:29:30 +00:00
2026-08-14 15:58:14 +00:00
2026-08-20 10:08:48 +00:00
2026-08-14 16:33:25 +00:00
2026-08-18 15:06:02 +00:00
2026-06-22 18:20:57 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 16:26:14 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-12 03:55:10 +00:00
2026-08-20 10:08:48 +00:00
2026-08-17 04:27:38 +00:00
2026-03-25 12:07:34 -06:00
2026-07-23 11:22:43 +00:00
2026-08-20 12:47:15 +00:00
2026-08-19 17:27:34 +00:00
2026-07-13 16:37:28 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:20:14 +00:00
2026-06-29 13:24:33 +00:00
2026-07-10 15:32:21 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 11:17:57 +00:00
2026-08-19 13:07:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 12:40:18 +00:00
2026-06-02 12:03:05 +00:00
2026-07-21 14:51:27 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-05-14 21:03:56 +00:00
2026-06-23 09:21:31 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 03:20:44 +00:00
2026-08-19 12:16:37 +00:00
2026-08-14 22:42:27 +00:00
2026-08-17 00:54:13 +00:00
2026-08-19 11:07:38 +00:00
2026-07-17 11:41:08 +00:00
2026-08-20 10:08:48 +00:00
2026-05-12 15:52:52 +00:00
2026-08-19 12:16:37 +00:00
2026-07-15 08:33:25 +00:00
2026-08-19 21:10:56 +00:00
2026-07-14 17:18:23 +00:00
2026-08-18 07:00:34 +00:00
2026-06-13 05:21:05 +00:00
2026-08-20 12:15:06 +00:00
2026-08-18 10:02:20 +00:00
2026-08-20 11:25:47 +00:00
2026-07-23 11:22:43 +00:00
2026-06-05 19:46:05 +00:00
2026-08-18 05:36:16 +00:00
2026-07-23 22:46:06 +00:00
2026-08-20 10:08:48 +00:00
2026-07-27 18:20:35 +00:00
2026-08-18 10:02:20 +00:00
2026-08-18 10:02:20 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-07-16 09:41:21 +00:00
2026-08-03 11:53:30 +00:00
2026-08-18 16:55:09 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-07-07 11:48:14 +00:00
2026-08-18 12:40:18 +00:00
2026-08-19 11:07:38 +00:00
2026-08-10 16:42:30 +00:00
2026-06-23 09:33:47 +00:00
2026-08-20 10:08:48 +00:00
2026-05-05 16:25:56 +00:00
2026-08-18 07:00:34 +00:00
2026-07-20 11:17:43 +00:00
2026-04-29 10:27:47 +00:00
2026-07-23 04:49:39 +00:00
2026-04-24 10:29:51 +00:00
2026-08-09 22:29:52 +00:00
2026-05-27 19:33:04 +00:00
2026-08-20 10:08:48 +00:00
2026-07-20 04:08:28 +00:00
2026-03-31 08:06:37 -06:00
2026-05-04 06:30:47 +00:00
2026-07-31 19:57:13 +00:00
2026-08-19 21:10:56 +00:00
2026-08-18 07:58:21 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 22:17:41 +00:00
2026-08-20 10:08:48 +00:00
2026-08-12 18:14:22 +00:00
2026-08-17 00:36:13 +00:00
2026-03-27 14:41:25 +01:00
2026-07-29 20:59:24 +00:00
2026-08-20 10:08:48 +00:00
2026-08-16 11:41:17 +00:00
2026-05-28 19:43:30 +00:00
2026-08-20 10:08:48 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-07-01 04:25:40 +00:00
2026-05-29 07:06:57 +00:00
2026-06-08 14:59:39 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 16:59:08 +00:00
2026-03-19 12:53:26 -04:00
2026-05-27 10:31:53 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-05-01 22:33:54 +00:00
2026-08-20 11:27:03 +00:00
2026-08-20 12:29:17 +00:00
2026-05-29 16:28:27 +00:00
2026-08-20 11:17:57 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-04-02 17:06:57 -03:00
2026-08-09 22:29:52 +00:00
2026-07-01 15:18:54 +00:00
2026-05-28 20:19:17 +00:00
2026-05-28 20:19:17 +00:00