Skip to content

[Bug]: "Open" flag does not work if path has whitespace around it #669

Closed
@python357-1

Description

@python357-1

Checklist

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

TagStudio Version

main (9.5)

Operating System & Version

Linux 6.1.0-28-amd64 x86_64 GNU/Linux (Debian)

Description

When starting TagStudio from the command line, if it is given a path that has whitespace around it, TagStudio does not open to that library and logs "Path does not exist".

Expected Behavior

TagStudio should be able to trim whitespace around paths it is given

Steps to Reproduce

  1. Make a tagstudio library (i.e. /home/person/TagStudioLib)
  2. Attempt to start TagStudio with that library (python3 tag_studio.py -o " /home/person/TagStudioLib" or, what visual studio code apparently does, python3 tag_studio.py -o\ /home/person/TagStudioLib)
  3. Observe that TagStudio starts with no library open and logs "Path does not exist. open_path=..."

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    System: LinuxFor Linux/BSD distributionsSystem: macOSFor the macOS operating systemType: BugSomething isn't working as intended

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions