Davilarek / Vencord

The cutest Discord client mod + BD plugin support
GNU General Public License v3.0
18 stars 2 forks source link

Virtual Filesystem Bypass #20

Open QuestionableNinja opened 2 weeks ago

QuestionableNinja commented 2 weeks ago

Content

I was wondering if it's possible to bypass the virtual filesystem as it breaks the save path configuration component of DevilBro's ImageUtilities for BD, which was my primary reason for installing BV.

Request Agreement

Davilarek commented 2 weeks ago

Well, as of right now, BetterVencord's filesystem is isolated and has no access to your real PC filesystem. This was partially done by design and partially as a side effect of me using BetterVencord primarily on browser. If real filesystem was exposed in BetterVencord, it would not be able to run on browser, making my own project useless for me. In theory I could add a toggle or a build option for desktop installs to enable filesystem bridge, or mounting the virtual filesystem on top of real filesystem so that changes are reflected onto the real one, thought I'm not sure how will this work and I really don't like that idea personally (exposing the filesystem is potentially dangerous). There were multiple trials of me trying to implement something that would work better than acquiring native FS handle but they either got abandoned or halted due to lack of motivation.

This issue will stay open and possibly get pinned as it is an important topic for future of this project.