Created attachment 175124 [details] Screenshot of the dialog window. SUMMARY ------- Filenames at the 255-character limit (as defined by `NAME_MAX` in `file:///usr/src/linux-headers-2.6.38-10/include/linux/limits.h`) cannot be moved to the wastebin by appending `.trashinfo`, because the resultant filename exceeds `NAME_MAX`. Consequently, this situation needs to be specially handled by Dolphin, by: 1. Solely providing the "Delete" option, which is unintuitive and dangerous UX. 2. Prompting the user to manually reduce the filename before it can be moved to the wastebin. This shall be problematic for multiple filenames, because not everyone knows how to use KRename. 3. Automatically reducing the filename, and storing the original name in a sidecar file. This is the best option, because the user shouldn't be manually interacting with `$HOME/.local/share/Trash/` outside of `trash:/` anyway. STEPS TO REPRODUCE ------------------ 1. Name a file `!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`. 2. Attempt to send that file to the wastebin via Dolphin's context menu entry. OBSERVED RESULT --------------- It fails, with a nondescript error. See the attached screenshots. EXPECTED RESULT --------------- As aforementioned. SOFTWARE/OS VERSIONS -------------------- > ```YAML > Operating System: Fedora Linux 40 > KDE Plasma Version: 6.2.1 > KDE Frameworks Version: 6.7.0 > Qt Version: 6.7.2 > Kernel Version: 6.11.4-201.fc40.x86_64 (64-bit) > Graphics Platform: Wayland > Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor > Memory: 30.4 GiB of RAM > Graphics Processor: AMD Radeon RX 5700 > Manufacturer: ASRock > Product Name: X670E Taichi > ``` ADDITIONAL INFORMATION ---------------------- Obviously, it's a very, very niche situation. Noticed when filing https://github.com/darkreader/darkreader/issues/13410#issue-2606658084.
Created attachment 175125 [details] Screenshot of the main window.
(In reply to Roke Julian Lockhart Beedell from comment #0) There's some useful information about this at https://serverfault.com/revisions/306726/3#:~:text=%23define-,NAME_MAX%20%20%20%20%20%20%20%20%20255,-/*%20%23%20chars.
Confirmed on git-master For convenience, here's an easy way to generate a file with 255 characters N=251 && name=`perl -e "print 'a' x $N;"` touch ${name}.txt