flathub / org.freedesktop.Sdk.Extension.mono5

2 stars 3 forks source link

Missing FLATPAK_DEST variable #13

Open bauno opened 4 years ago

bauno commented 4 years ago

Hello!

Not sure what exactly the problem is [1], but mono is not working in com.jetbrains.Rider flatpak. The reason seems to be that /usr/lib/sdk/mono5/use.sh is referencing FLATPAK_DEST: export PATH=$PATH:${FLATPAK_DEST}/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${FLATPAK_DEST}/lib export PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}${FLATPAK_DEST}/lib/pkgconfig export MONO_GAC_PREFIX=/app

Overriding the flatpak env with FLATPAK_DEST=/usr/lib/sdk/mono5 fixes the problem.

[1]: the presence of FLATPAK_DEST in the script or the missing variable, I'd say the former

output of flatpak info org.freedesktop.Sdk.Extension.mono5

Mono 5.x Sdk extension - Mono runtime, compiler and tools

      ID: org.freedesktop.Sdk.Extension.mono5
     Ref: runtime/org.freedesktop.Sdk.Extension.mono5/x86_64/19.08
    Arch: x86_64
  Branch: 19.08
 Version: 5.20.1.34
  Origin: flathub

Collection: org.flathub.Stable Installation: system Installed: 564,8 MB

  Commit: 22df5ef9192485e37221a84f5d430128291bcd137c1ef37eae36fc08ae54a87d
 Subject: Add release to appdata (d020a784)
    Date: 2020-04-30 17:48:23 +0000