bb010g / betterdiscordctl

A utility for managing BetterDiscord on Linux.
MIT License
323 stars 13 forks source link

Injection failing due to "permission denied, mkdir" #126

Closed moreYEE closed 3 years ago

moreYEE commented 3 years ago

The betterdiscord installer is working, until apparently there's something wrong with permissions. Is this a problem with my mac, or is it a problem with the software?

The scripts: Starting Install...

Creating required directories... ✅ Directory exists: /Users/m.li/Library/Application Support/BetterDiscord ✅ Directory exists: /Users/m.li/Library/Application Support/BetterDiscord/data ✅ Directory exists: /Users/m.li/Library/Application Support/BetterDiscord/themes ✅ Directory exists: /Users/m.li/Library/Application Support/BetterDiscord/plugins ✅ Directories created

Downloading asar file ✅ Package downloaded

Injecting shims... Injecting into: /Applications/Discord.app/Contents/Resources ❌ Could not inject shims to /Applications/Discord.app/Contents/Resources ❌ EACCES: permission denied, mkdir '/Applications/Discord.app/Contents/Resources/app'

The install seems to have failed. If this problem is recurring, join our discord community for support. https://discord.gg/0Tmfo5ZbORCRqbAd

ObserverOfTime commented 3 years ago

This issue is for https://github.com/BetterDiscord/Installer

penjackman commented 3 years ago

im having issues with this too help

bb010g commented 3 years ago

@Dubcoder If you have an issue with betterdiscordctl & not BetterDiscord Installer, please create a new issue with more information about your problem.

flatypus commented 3 years ago

I found a solution! After a while of debugging, turns out inside the /applications/discord....../Resources/folder, you just need to make a new folder called 'app'. This requires the admin password, which BD doesn't have, but making the folder seemed to let BD install its shims or whatever.

jnelken commented 3 years ago

You need to reinstall Discord, as I assume it has the correct/updated folders required for BetterDiscord's install. https://githubmemory.com/repo/BetterDiscord/Installer/issues/164

wujingfei1990 commented 2 years ago

我找到了解决办法!经过一段时间的调试,原来在/applications/discord....../Resources/文件夹中,您只需要创建一个名为“app”的新文件夹。这需要 BD 没有的管理员密码,但制作该文件夹似乎让 BD 安装其垫片或其他任何东西。

解决了,就是新建个app文件夹就可以了

BLAMEITONBRADEN commented 1 year ago

A solution I have found is that, in settings go to privacy and security, and go to full disc access. Add better discord to it and it'll work.

Screenshot 2022-11-16 at 9 38 18 AM