far2l icon indicating copy to clipboard operation
far2l copied to clipboard

Error when deleting .DS_Store file

Open Hawkedon opened this issue 1 month ago • 3 comments

I'm using the latest version 2.7.0-beta. When deleting .DS_Store file, I always get "File not found }} Cannot delete the file" error dialog. The weird "}}" is what appeared in the dialog. When I click the "Skip" button in the dialog, I can see file has been deleted.

Hawkedon avatar Nov 21 '25 10:11 Hawkedon

@Hawkedon are you using far2l on macOS? Info from the menu Commands->About FAR would be helpful to diagnose the issue as well as the std output collected with export FAR2L_STD, see here

exkrexpexfex avatar Nov 24 '25 17:11 exkrexpexfex

@exkrexpexfex I'm on the latest macOS Sequoia 15.7.2. After some debugging, I found the root cause and solved the problem. It's due to the incorrect usage of "trash" command at https://github.com/elfmz/far2l/blob/d77354eed8e48def181811da8a61f72044e678e9/far2l/bootstrap/trash.sh#L24 The "trash" command doesn't support the "put" parameter (it treats "put" as a file to be moved to Trash), thus return error when the command running (as the file with name "put" doesn't exist), but it does trash the file after "put" parameter. Simply removing "put" parameter fixed the problem. Would you please committing this fix in the code base?

Hawkedon avatar Nov 25 '25 03:11 Hawkedon

@tempergate please taking into account. trash put was added in your PR https://github.com/elfmz/far2l/pull/2797

akruphi avatar Nov 25 '25 07:11 akruphi