Skip to content

[Bug]: Opening file with an '&' fails #666

Closed
@SkeleyM

Description

@SkeleyM

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha v9.5.0 (main branch)

Operating System & Version

Windows 10 22H2

Description

Clicking on the file preview to open the file fails when the path contains an ampersand ('&')

The '&' gets interpreted as a shell command
image

Expected Behavior

The file should be opened regardless of if the path contains an & or not

Steps to Reproduce

  1. Rename a file to contain an '&' or have one in a folder with an '&' in the name
  2. Click the preview of the file in tag studio

Logs

2024-12-23 14:44:47 [info ] Opening file path=WindowsPath('C:/Users/user/Pictures/path&path/waw.PNG')
The system cannot find the file C:\Users\user\Pictures\path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAn important issue requiring attentionType: BugSomething isn't working as intendedType: File SystemFile system interactions

    Type

    No type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions