kitty/kittens
Kovid Goyal 68f242b7d9
clipboard: Cleanup atomic replacement of output files
Follow up to the merge of #10738. Use utils.AtomicUpdateFile to move
downloaded data into place instead of hand rolling the stat/chmod/rename
sequence. This fixes:

- Permissions of existing destination files not being preserved, as the
  chmod was applied to an already closed file
- An empty file being left at the destination if the rename failed, as
  the permissions probe opened the destination with O_CREATE
- Symlinks at the destination being replaced by regular files
- No fsync before the rename

Also encode converted images into memory and write them atomically, so
a failed encode no longer truncates and then deletes an existing
destination file.
2026-10-25 20:33:25 +05:30
..
ask autoformat 2026-08-05 05:32:56 +05:30
broadcast Merge origin/master into go-kitten-ports 2026-08-18 16:18:54 +05:30
choose_files Fix #10658 2026-10-13 08:21:05 +05:30
choose_fonts choose-fonts: Show styles in axis value order 2026-10-23 19:11:29 +05:30
clipboard clipboard: Cleanup atomic replacement of output files 2026-10-25 20:33:25 +05:30
command_palette Fix #10711 2026-10-21 10:45:01 +05:30
desktop_ui Nicer error handling for failure to launch panels 2026-09-26 07:37:58 +05:30
diff Apply deferred directory permissions children first when extracting tar 2026-10-16 19:12:51 +05:30
dnd Fix explicit stdin sources in the DnD kitten 2026-08-28 13:19:25 +05:00
hints hints: Cleanup previous PR 2026-10-24 06:36:26 +05:30
hyperlinked_grep run modernize 2025-11-11 17:09:37 +05:30
icat icat: Write unicode placeholders in a single write 2026-10-08 12:00:20 -04:00
notify Fix notification close mode 2026-08-28 11:20:05 +05:00
pager autoformat 2026-08-05 05:32:56 +05:30
panel Fix #10603 2026-10-05 04:16:54 +05:30
query_terminal autoformat 2026-08-05 05:32:56 +05:30
quick_access_terminal Fix #10603 2026-10-05 04:16:54 +05:30
remote_file ... 2026-08-20 08:07:21 +05:30
resize_window Cleanup previous PR 2026-10-09 19:51:38 +05:30
show_key autoformat 2026-08-05 05:32:56 +05:30
ssh ssh kitten: Resolve HOME when using --symlink-strategy=resolve 2026-10-25 19:09:11 +05:30
themes autoformat 2026-08-05 05:32:56 +05:30
transfer Transfer kitten: Replace existing links when receiving files 2026-10-21 20:35:07 +05:30
tui Make ty 79 happy 2026-09-08 09:35:54 +05:30
unicode_input autoformat 2026-08-05 05:32:56 +05:30
__init__.py
runner.py autoformat 2026-08-05 05:32:56 +05:30