BetterDiscord / Installer

A simple standalone program which automates the installation, removal and maintenance of BetterDiscord.
https://betterdiscord.app
MIT License
1.77k stars 188 forks source link

[Bug] Linux installer doesn't run out of the box on Ubuntu 24.04 #379

Open wyphan opened 5 months ago

wyphan commented 5 months ago

Before Reporting

Describe the Bug

The Linux AppImage installer fails to run on a base amd64 installation of Ubuntu Linux 24.04 LTS. Here is the error message:

$ ./BetterDiscord-Linux.AppImage 
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

This is because by default Ubuntu 22.04 comes with libfuse3.so.3 instead, from the libfuse3-3 package.

For now, the missing shared library can still be installed using sudo apt install libfuse2t64. It might be helpful to document this extra step.

Also, I haven't checked whether this is specific to Ubuntu, or it came from upstream Debian. It might also affect recent versions of other distros.

Expected Behavior

AppImage binary should work out of the box.

Steps To Reproduce

  1. Download the installer from the official project website
  2. Mark it as executable with chmod +x
  3. Try to execute it.

Operating System

Linux

Discord Version

Stable

BetterDiscord Version

N/A

Anything else?

No response

wyphan commented 5 months ago

Oh, turns out, installing the libfuse2t64 package still doesn't fix the problem :joy:

Now the error message goes like:

$ ./BetterDiscord-Linux.AppImage 
[90380:0604/170300.295693:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_BetterQQY0SY/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)
Huderon commented 5 months ago

afaik that's a Debian issue. I assume you've found it, but you should be able to just run the AppImage with the --no-sandbox flag

wyphan commented 5 months ago

Do you think it has something to do with AppArmor? I remember I had to tweak something before protontricks would work for me on this system.

Huderon commented 5 months ago

I'm a bit of a dummy, so I don't really understand it all, but you can read up on the cause here