-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
Description
Dragging a file from the explorer into the terminal enters its path. Since the path could contain special characters, it is escaped with double quotes " on Windows or single quotes ' on Ubuntu 24. The problem is that trogon escapes the input an additional time. So the executed command looks something like this:
script.py --output '"D:\path\to\file.txt"'The parsed path therefore still contains the quotes leading to a FileNotFoundError.
I'd suggest, that trogon should detect when the input is already escaped and not escape it an additional time.
mxmlnkn