Skip to content

[BUG] Can't preview files with special characters in filename #20

@SamsaraF

Description

@SamsaraF

Describe the bug
Can't preview .ps files with special characters in filename

To Reproduce
Steps to reproduce the behavior:

  1. Open a postscript file with special characters (like spaces or parentheses) in its name
  2. Click on 'Preview Postscript'
  3. See error 'Failed to execute ps2pdf. Report bug with postscript file to dev.'

Desktop (please complete the following information):

  • OS: [Ubuntu]
  • Version [24.04.3 LTS]

Extension Host Logs

Watching /home/aria/test_data/test(+)ss.ps
--- GhostScript Errors/Warnings ---
/bin/sh: 1: Syntax error: "(" unexpected

Additional context
test ss.ps will cause same error. test_ss.ps works normally.
Seems need to add text escape to filename.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions