Skip to content

Subject: Windows Compatibility Issue: Incorrect Media Path Handling #28

@cup-of-latte

Description

@cup-of-latte

I've encountered a potential compatibility issue when running Nugget App on Windows.

Problem Description:

On Windows, the application appears to have trouble handling media file paths correctly. This likely results in errors when attempting to load or process video and image files. The issue seems to stem from the way file paths are constructed or interpreted, potentially due to the differences in path separators between Windows (backslashes ) and other operating systems (forward slashes /).

Proposed Solution:

I've found that normalizing the media path using the path.normalize() function from Node.js's built-in path module resolves this issue on Windows.

// ... Code to get the media file path ...

const normalizedPath = path.normalize(mediapath);

// ... Use normalizedPath for subsequent processing ...

Thank you for your work on this great project!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions