Almighty-Alpaca/JetBrains-Discord-Integration

Issues with Discord/IDE as Snap packages or from the Ubuntu Software Center

ahmeddrawy opened this issue · 6 comments

Issues with Discord/IDE as Snap packages or from the Ubuntu Software Center

Hi, it is currently not possible to use this plugin when both Discord and your IDE are installed with snap because of the sandboxing, and the fact the plugin is not able to connect to the discord socket

therefore I recommend you to either :
install those applications with flatpak (and a workaround)
install those applications on "bare metal" (without any sandboxing environment).

As far as I know, there's no easy way to get this to work under Snap due to its nature of sandboxing applications. That being said I'm by far not a Snap expert so if anyone wants to prove me wrong feel free to do so.

For Discord's side, you can take a look at snapcrafters/discord#25 (comment). Maybe you have some luck with that.

install those applications with flatpak (and a workaround)

what workaround?

As far as I can tell, sudo snap connect discord:system-observe is not effective.
While this isn't the end of the world, it would certainly make transitioning to Linux from Windows a little
less frustrating for new users,

Unfortunately the only workaround that I found was to not use snap for discord and intellij :/
I did:

sudo snap remove discord
sudo snap remove intellij-idea-community
sudo apt install alien

Download the discord's .deb and double clicked to install
Downloaded the intellij toolbox's .tar.gz from https://www.jetbrains.com/pt-br/toolbox-app/
ran:

sudo alien jetbrains-toolbox-1.27.2.13801.tar.gz

Duble clicked the generated jetbrains-toolbox.deb file to install
ran:

sudo ln -s /jetbrains-toolbox-1.27.2.13801/jetbrains-toolbox /usr/local/bin/jetbrains-toolbox

because it placed the runnable binary file in an bad place
ran jetbrains-toolbox
installed IntelliJ from GUI and everything was the same way has before, except that DiscordIntegration works now

honestly? The best thing you can do is remove Ubuntu Software and install Gnome-Software with snap+flatpak plugin.
It's WAY faster because it's not based on an ancient gnome software version and still supports snaps if you want them.

sudo snap remove snap-store --purge
sudo apt install flatpak gnome-software-plugin-snap gnome-software-plugin-flatpak

Then, install IntelliJ via toolbox or flatpak and discord as flatpak.

Don't get me wrong, I'm NOT hatitng on snap. It has it's uses but some issues, like this one, just don't seem to get fixed.