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