Closed tjb0607 closed 6 years ago
You can actually run Discord as non-root after replacing the files. beautifuldiscord will find an app, replace it then relaunch Discord, this instance is relaunched as root and so the socket (/tmp/Discord.sock
) has also root permissions. When you close Discord then reopen as a normal user, it should work fine. I think the solution would be making it not relaunch Discord, just replacing the files.
This should be fixed now since it no longer writes anywhere except in the home directory.
with discord-canary installed via the AUR package, and thus installed in a read-only directory, this happens:
Running beautifuldiscord as root sorta works, but then due to the permissions of the files it creates, it makes discord itself only able to run as root.
A quick, simple fix would be to tell people to run
sudo chmod -R a+w /opt/discord-canary
or whatever the install directory is. Another fix would be to make running beautifuldiscord as root work without breaking discord for everyone but the root user, possibly even calling sudo to automate this if the directory has no write permissions to the user running it.