SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.88k stars 93 forks source link

Drag and drop not working webcord-vencord-git #459

Closed iUnstable0 closed 1 year ago

iUnstable0 commented 1 year ago

Acknowledgements

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

v25.3.2

Application version

4.4.0, development build

Bug description

Im on webcord-vencord-git and drap and drop doesnt work

I know theres alreadyanother issue mentioning this but you added the wont fix tag to it. I've fixed this on the official discord client by adding electron ozone tag thingy

--enable-features=UseOzonePlatform --ozone-platform-hint=wayland

and it worked, but on webcord it doesnt (threw GPU error, im using nvidia btw on hyprland arch with nvidia-open-dkms RTX 4090)

Additional context

also i cant use cloud sync (it gave cannot get Oauth2 token error)

SpacingBat3 commented 1 year ago

Do you have Google Storage API disabled in CSP settings?

iUnstable0 commented 1 year ago

How do you configure it? i dont see option for that

SpacingBat3 commented 1 year ago

It's in WebCord settings, Advanced section (on menu bar, File -> Settings).

SpacingBat3 commented 1 year ago

Also drag and drop works on my side so I'm pretty sure you must've toggled these settings, thinking it doesn't change anything other than blocking another tracing… CSP is more than that – it basically blocks integrations with third-parties in Discord and that means whatever you toggle there, something it supposed to break in Discord. For instance, you won't be able to search GIFs within Discord if you disable GIF providers and with Google Storage API, you won't be able to share anything via Discord itself. There's a reason why I placed this in Advanced section, but not in Privacy… It's supposed to be for power users that are willing to additionally block stuff provided by third-parties and that they don't care about. And the sane defaults are always to have everything enabled, since Discord doesn't really connect to anything by itself, unless you connect your Discord account with your other accounts (like Spotify) or go to channels and load embeds.


Of course, I assume it's not on Vencord side – given I don't really support any mods made to my client, I might also close this issue for that reason you've not confirmed this happens with vanilla version of WebCord. Also I don't know what you mean cloud sync, if it's one of Vencord features then don't think I'm the one supposed to fix it, especially when cloud sync might use Chrome account sync feature that's quite restricted to proprietary Chrome only.


Anyway, I'm pretty sure this is just yet another duplicate of the issues you've found in this bug tracker and it's caused by invalid configuration. Given I've already explained it there, maybe just read them before opening another issue ticket?

SpacingBat3 commented 1 year ago

Linking to: #371 #435.