fix: GSettings-Schemas im Nix-Wrapper (XDG_DATA_DIRS) [appimage]

App crashte mit "No GSettings schemas are installed on the system"
weil WebKitGTK die GLib-Schemas nicht finden konnte.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eddy 2026-04-21 12:06:25 +02:00
parent d4c57b777a
commit b90db222e7

View file

@ -61,7 +61,7 @@ let
in in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
pname = "claude-desktop"; pname = "claude-desktop";
version = "0.1.1"; version = "0.1.2";
# Keine Quelldateien — Wir packen nur Wrapper + Desktop-Entry # Keine Quelldateien — Wir packen nur Wrapper + Desktop-Entry
dontUnpack = true; dontUnpack = true;
@ -137,7 +137,9 @@ pkgs.stdenv.mkDerivation {
wrapProgram $out/bin/claude-desktop \ wrapProgram $out/bin/claude-desktop \
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtimeLibs} \ --prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtimeLibs} \
--prefix PATH : ${pkgs.lib.makeBinPath runtimeBins} \ --prefix PATH : ${pkgs.lib.makeBinPath runtimeBins} \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${gstPluginPath} --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${gstPluginPath} \
--prefix XDG_DATA_DIRS : ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name} \
--prefix XDG_DATA_DIRS : ${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}
# 2) Installer: kopiert ein frisch gebautes Binary an den Ziel-Ort # 2) Installer: kopiert ein frisch gebautes Binary an den Ziel-Ort
cat > $out/bin/claude-desktop-install <<'INSTALLER' cat > $out/bin/claude-desktop-install <<'INSTALLER'