[Flatpak] Prism Launcher => Presumes Discord is installed and fails silently (Temp Workaround Fix Included)
Operating System
Linux
Version of Prism Launcher
Flatpak Prism Launcher 11.1.0
Version of Qt
Not Sure
Description of bug
Installed the latest Prism Launcher (11.1.0) from Flathub on a machine that doesn't have Discord installed. It installs fine but when you actually try to run it, nothing happens. Click the icon, it shows up in the dock for about 10 seconds, then just disappears. No error, no popup, nothing. As a regular user you'd have zero idea what went wrong.
I ran it from a terminal to see what was actually happening (not something a normal user would think to do):
user@machine:~$ flatpak run org.prismlauncher.PrismLauncher bwrap: Can't bind mount /oldroot/run/user/1000/app/com.discordapp.Discord on /newroot/run/user/flatpak/app/com.discordapp.Discord: Unable to mount source on destination: No such file or directory
So it's trying to bind mount something related to Discord (probably for rich presence) and just crashes the whole launcher when it can't find it. There's no setting to turn this off and no way to know this is even happening unless you dig through a terminal like I did.
Found a workaround that gets it running:
user@machine:~$ flatpak override --user --nofilesystem=xdg-run/app/com.discordapp.Discord org.prismlauncher.PrismLauncher flatpak run org.prismlauncher.PrismLauncher
That loads it up fine after that. Not a real fix though, just a workaround, and it'll block any Discord integration going forward if that ever gets added properly.
For now it'd be good if Prism just checked whether Discord is actually there before trying to do anything with it, instead of assuming it exists and blowing up when it doesn't. Longer term, if rich presence becomes an actual feature, it should probably be something you opt into from settings rather than something that just happens automatically and silently fails when the thing it depends on isn't installed.
Steps to reproduce
Install Flatpak Prism Launcher with no Discord installed. Run Prism Launcher => fails to launch because it presumes that Discord is always installed.
Discord installed => Prism Launcher loads. Discord not installed => Prism Launcher fails silently. (Doesn't work).
Other information
I believe my write-up and detailed error message and diagnostics information should be sufficient for quickly locating and fixing this issue.
This issue is unique
- I have searched the issue tracker and did not find an issue describing my bug.
Source: PrismLauncher/PrismLauncher