Skip to content

inna-plugin link fails if plugin directory does not exist #5597

@dzfranklin

Description

@dzfranklin

IINA Version

1.3.5

Release Channel

Release

macOS Version

15.1.1 (24B91)

Steps to Reproduce

Expected Behavior

iina-plugin link . succeeds

Actual Behavior

> iina-plugin link .

Unable to create the symlink, error: Error Domain=NSCocoaErrorDomain Code=4 "The file
“watchlet.iinaplugin-dev” doesn’t exist." UserInfo={NSFilePath=/Users/daniel/Library/Application
Support/com.colliderli.iina/plugins/watchlet.iinaplugin-dev,
NSURL=file:///Users/daniel/Library/Application%20Support/com.colliderli.iina/plugins/watchlet.iinaplugin-dev,
NSUnderlyingError=0x12a70b0d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I think swift is misinterpreting the underlying error. The directory /Users/daniel/Library/Application Support/com.colliderli.iina/plugins/ does not exist. If I create it manually everything works

> mkdir -p ~/Library/Application\ Support/com.colliderli.iina/plugins

> iina-plugin link .

Created symlink watchlet.iinaplugin-dev under /Users/daniel/Library/Application Support/com.colliderli.iina/plugins

Edit: To clarify when I tested with nightly I manually deleted the directory I had just manually created, ~/Library/Application Support/com.colliderli.iina/plugins, and then ran ~/Downloads/IINA.app/Contents/MacOS/iina-plugin link .. So that wouldn't have tested if the plugin directory is now created at first install or something like that.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions