Skip to content

Commit ca3e160

Browse files
committed
musescore: use wrapGAppsHook3 on Linux only
Since musescore/MuseScore@685ac998 GTK3 is needed on Linux for file dialogs. wrapGAppsNoGuiHook is not sufficient - without wrapGAppsHook3 mscore crashes in File -> Open when XDG_DATA_DIRS is unset.
1 parent 18ecb38 commit ca3e160

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkgs/applications/audio/musescore/default.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
, fetchFromGitHub
44
, fetchpatch
55
, cmake
6-
, wrapGAppsNoGuiHook
6+
, wrapGAppsHook3
77
, wrapQtAppsHook
88
, pkg-config
99
, ninja
@@ -103,14 +103,15 @@ in stdenv'.mkDerivation (finalAttrs: {
103103
dontWrapGApps = true;
104104

105105
nativeBuildInputs = [
106-
# Just to make it not crash when looking up Gschemas when opening external
107-
# files
108-
wrapGAppsNoGuiHook
109106
wrapQtAppsHook
110107
cmake
111108
qttools
112109
pkg-config
113110
ninja
111+
] ++ lib.optionals stdenv.isLinux [
112+
# Since https://github.com/musescore/MuseScore/pull/13847/commits/685ac998
113+
# GTK3 is needed for file dialogs. Fixes crash with No GSettings schemas error.
114+
wrapGAppsHook3
114115
];
115116

116117
buildInputs = [

0 commit comments

Comments
 (0)