Skip to content

Workaround Electron on Linux missing nativeImage.createThumbnailFromPath#79

Merged
Antoine-lb merged 1 commit into
OneFolderApp:masterfrom
mx-sylveon:moxie/linux-drag-icon-workaround
Jun 28, 2024
Merged

Workaround Electron on Linux missing nativeImage.createThumbnailFromPath#79
Antoine-lb merged 1 commit into
OneFolderApp:masterfrom
mx-sylveon:moxie/linux-drag-icon-workaround

Conversation

@mx-sylveon
Copy link
Copy Markdown
Contributor

Per the docs, even the latest Electron version doesn't support nativeImage.createThumbnailFromPath on Linux as of 2024-06-28.

This change just falls back to a manual resize of the image as a stopgap.

@Antoine-lb
Copy link
Copy Markdown
Contributor

I don't have a linux to test it out but the code looks greate.

Thanks!

@Antoine-lb Antoine-lb merged commit 5e231d9 into OneFolderApp:master Jun 28, 2024
@mx-sylveon mx-sylveon deleted the moxie/linux-drag-icon-workaround branch June 28, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants