#! /bin/sh /usr/share/dpatch/dpatch-run ## 18-correct-sf2-path.dpatch by Toby Smithe ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Point musescore at the correct SoundFont path on Debian/Ubuntu. @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' musescore-1.1~/mscore/mscore/mscore.cpp musescore-1.1/mscore/mscore/mscore.cpp --- musescore-1.1~/mscore/mscore/mscore.cpp 2011-08-12 15:38:55.551175811 +0100 +++ musescore-1.1/mscore/mscore/mscore.cpp 2011-08-12 15:41:38.461414743 +0100 @@ -1883,7 +1883,7 @@ if (!useFactorySettings) preferences.read(); else { - preferences.soundFont = mscoreGlobalShare+"sound/TimGM6mb.sf2"; + preferences.soundFont = "/usr/share/sounds/sf2/TimGM6mb.sf2"; } QSplashScreen* sc = 0; @@ -3288,4 +3288,4 @@ showWebPanel(false); preferences.showWebPanel = false; preferences.dirty = true; - } \ No newline at end of file + } diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' musescore-1.1~/mscore/mscore/preferences.cpp musescore-1.1/mscore/mscore/preferences.cpp --- musescore-1.1~/mscore/mscore/preferences.cpp 2011-08-12 15:38:55.571175831 +0100 +++ musescore-1.1/mscore/mscore/preferences.cpp 2011-08-12 15:42:38.141502282 +0100 @@ -361,7 +361,7 @@ playNotes = s.value("playNotes", true).toBool(); lPort = s.value("lPort").toString(); rPort = s.value("rPort").toString(); - defaultSoundfont = mscoreGlobalShare+"sound/TimGM6mb.sf2"; + defaultSoundfont = "/usr/share/sounds/sf2/TimGM6mb.sf2"; soundFont = s.value("soundFont", defaultSoundfont).toString(); if (soundFont == ":/data/piano1.sf2") { // silently change to new default sound font