Skip to content

Can view_command correctly handle quotations? #1352

Description

@mil-ad

So I'm trying to set up a new view_command for macOS to open PDFs using PDF Expert. My view_command looks like below but it doesn't work:

"osx" : {
     "view_command": "open -a \"PDF Expert\""
 },

When I replace it with "open -a Preview" it works fine so I guess it's something to do with the fact that the name of the app has spaces in it and needs to be in quotations.

I also tried "open -a PDF\ Expert" but it doesn't work either.

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions