Skip to content

Improve file drag and drop support #110

@IceFreez3r

Description

@IceFreez3r

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions