powercord-org / powercord

A lightweight @discord client mod focused on simplicity and performance.
MIT License
1.2k stars 147 forks source link

opening src/Powercord/modules/ in Finder on macOS creates file, .DS_Store, causes powercord to crash on startup #571

Closed ashy1227 closed 2 years ago

ashy1227 commented 2 years ago

Describe the bug the finder app creates a file, .DS_Store in every folder you go into (yeah it's really not very smart), and powercord seems to think it's a module. it tries to load it, and obviously fails at doing so...preventing powercord from loading entirely and creating other (temporary) minor functional issues in discord

To Reproduce simply opening up the modules folder is enough to do it

Expected behavior PC should probably ignore non-modules and dotfiles

Desktop (please complete the following information):

Additional context

katlyn commented 2 years ago

Fix should be as simple as adding an additional check to src/Powercord/modules/index.js#L3.