Repository: vscode
Issue: Unable to Delete Files to Trash: vscode( V > 1.89 )  (on debian kde)
Labels: bug,upstream,linux,electron,electron-29-update

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.90.0-1717531825_amd64
- OS Version: debian 12
- Distro: Debian GNU/Linux trixie/sid
- Kernel: 6.8.12-amd64 arch: x86_64 bits: 64 compiler: gcc v: 13.2.0
- Desktop: KDE Plasma v: 5.27.11 - wayland 

**Steps to Reproduce**:
1. Disable all extensions (Not exactly relevant)
2. Attempt to delete any file to the trash.


**Expected Behavior**:
  When attempting to delete a file, VSCode should delete it to the trash without any issues.

**Actual Behavior**:
  VSCode keeps trying to delete the file endlessly without success.

**Additional Information**:

I tracked what VSCode was trying to do. It launches this command: `kioclient5 move /path/file_name.any trash:/`
and this command keeps running endlessly without success.

So, I used the same command in the system terminal (Konsole), and it works fine, and the file was deleted successfully. 
Then, I used the same command in VSCode's integrated terminal, but it runs endlessly.

I used strace to trace the call, and here are the results:

**the result of runing** `strace -f -e trace=execve kioclient5 move /home/userName/path_longPath/file.any trash:/`
<details>
<summary>kde konsole </summary>
execve("/usr/bin/kioclient5", ["kioclient5", "move", "/home/userName/path_lo"..., "trash:/"], 0x7fff0da66a70 /* 66 vars */) = 0

strace: Process 102239 attached
strace: Process 102240 attached
strace: Process 102241 attached
strace: Process 102242 attached
strace: Process 102243 attached
[pid 102243] +++ exited with 0 +++
[pid 102242] +++ exited with 0 +++
strace: Process 102244 attached
strace: Process 102245 attached
strace: Process 102246 attached
[pid 102246] execve("/lib/x86_64-linux-gnu/libexec/kf5/kioslave5", ["/lib/x86_64-linux-gnu/libexec/kf"..., "/usr/lib/x86_64-linux-gnu/qt5/pl"..., "trash", "", "local:/run/user/1000/kioclientvu"...], 0x7ffde30daaa0 /* 66 vars */ <unfinished ...>
[pid 102245] +++ exited with 1 +++
[pid 102238] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=102245, si_uid=1000, si_status=1, si_utime=0, si_stime=0} ---
[pid 102246] <... execve resumed>)      = 0
strace: Process 102247 attached
strace: Process 102248 attached
[pid 102246] --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=102238, si_uid=1000} ---
[pid 102247] --- SIGRTMIN {si_signo=SIGRTMIN, si_code=SI_TKILL, si_pid=102246, si_uid=1000} ---
[pid 102247] +++ exited with 0 +++
[pid 102248] +++ exited with 0 +++
[pid 102246] +++ exited with 0 +++
[pid 102241] +++ exited with 0 +++
[pid 102239] +++ exited with 0 +++
[pid 102240] +++ exited with 0 +++
[pid 102244] +++ exited with 0 +++
+++ exited with 0 +++
</details>
<details>
<summary>vscode default integrated terminal </summary>

execve("/usr/bin/kioclient5", ["kioclient5", "move", "/home/userName/path_lo"..., "trash:/"], 0x7fff9778abe0 /* 66 vars */) = 0

strace: Process 102649 attached
strace: Process 102650 attached
strace: Process 102651 attached
strace: Process 102652 attached
strace: Process 102653 attached
[pid 102653] +++ exited with 0 +++
[pid 102652] +++ exited with 0 +++
strace: Process 102654 attached
strace: Process 102655 attached
strace: Process 102656 attached

[pid 102656] execve("/lib/x86_64-linux-gnu/libexec/kf5/kioslave5", ["/lib/x86_64-linux-gnu/libexec/kf"..., "/usr/lib/x86_64-linux-gnu/qt5/pl"..., "trash", "", "local:/run/user/1000/kioclientxf"...], 0x7ffc2cd588f0 /* 66 vars */ <unfinished ...>
[pid 102655] +++ exited with 1 +++
[pid 102648] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=102655, si_uid=1000, si_status=1, si_utime=0, si_stime=0} ---
[pid 102656] <... execve resumed>)      = 0

i had to kill it (ctr+c) to make it end.
</details>

In short, when trying to Delete Files to Trash in VSCode, it hangs at this step: 
`/lib/x86_64-linux-gnu/libexec/kf5/kioslave5 /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_trash.so trash local:/run/user/1000/kioclientfXUcta.1.kiowork`

After reverting to the previous version of VSCode (1.89.0-1714530869_amd64), the issue was resolved.