azuredatastudio: fix file dialogs

File open dialogs in Azure Data Studio cause the application to crash.
As documented in #225989, this can be worked around by setting
XDG_DATA_DIRS, but the correct fix is to use GApps hooks.  Add those to
the program packaging, and move the custom fixup phase to a pre-fixup
hook, so the main hooks also get run.

Fixes #225989
This commit is contained in:
Adam Dinwoodie 2025-02-12 21:13:01 +00:00
parent e3ade6a61e
commit 8e85f23d0e

View file

@ -28,6 +28,7 @@
openssl,
pango,
systemd,
wrapGAppsHook3,
xorg,
zlib,
}:
@ -108,6 +109,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
makeWrapper
copyDesktopItems
wrapGAppsHook3
];
buildInputs = [
@ -180,7 +182,7 @@ stdenv.mkDerivation rec {
sqltoolsserviceRpath
];
fixupPhase = ''
preFixup = ''
fix_sqltoolsservice()
{
mv ${sqltoolsservicePath}/$1 ${sqltoolsservicePath}/$1_old