Drag-and-drop fails in snap package

Author: ExTechOpCreated Oct 26, 2025Updated Sep 5, 2026

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Operating System

Linux

Steps to reproduce

  • Install losslesscut 3.64.0 (stable version) with snap to Fedora 42 (Adams)
  • Start losslesscut
  • The very first prompt that comes up in the main window is DROP FILE(S)
  • Attempt to drag-and-drop any file from Caja 1.28.0-7 file manager

Expected behavior

File should open just as you'd opened it with File → Open…

Actual behavior

Popup Failed to open file, ENOENT: No such file or directory with a full correct-looking path to the file. Could this perhaps be due to the snap sandbox or selinux? Going the normal File → Open… route works fine.

Note: embedded whitespace in the filename does not seem to make a difference, doesn't work with a filename without any whitespace either.

Share log from developer tools

/home/username/directory/filename with spaces.ts
util.ts:359 Failed to open file Error: ENOENT: no such file or directory, lstat '/home/username/directory/filename with spaces.ts'
withErrorHandling @ util.ts:359
await in withErrorHandling (async)
(anonymous) @ App.tsx:1675
onDrop @ App.tsx:2286
util.ts:319 handleError Failed to open file Error: ENOENT: no such file or directory, lstat '/home/username/directory/filename with spaces.ts'
handleError @ util.ts:319
withErrorHandling @ util.ts:360
await in withErrorHandling (async)
(anonymous) @ App.tsx:1675
onDrop @ App.tsx:2286
Now