#! /bin/sh /usr/share/dpatch/dpatch-run ## 05-use-mscore-common-files.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: On Debian systems, use mscore-common files as opposed to those ## DP: linked into the mscore binary where possible. This is done for ## DP: two reasons: to make users aware of the available demo files in ## DP: /usr/share/mscore, and to reduce the size of the mscore binary. @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' musescore-1.0~/mscore/mscore/mscore.qrc musescore-1.0/mscore/mscore/mscore.qrc --- musescore-1.0~/mscore/mscore/mscore.qrc 2011-02-04 21:13:12.000000000 +0000 +++ musescore-1.0/mscore/mscore/mscore.qrc 2011-02-14 17:18:31.764404961 +0000 @@ -5,11 +5,6 @@ data/previous.png data/next.png data/repeat.svg - data/paper1.png - data/paper2.png - data/paper3.png - data/paper4.png - data/paper5.png data/text_bold.svg data/text_italic.svg data/text_left.svg @@ -38,7 +33,6 @@ fonts/MuseJazz.ttf ../share/templates/instruments.xml data/splash.jpg - ../demos/promenade.mscx data/speaker.svg data/midiin.svg data/undo.svg diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' musescore-1.0~/mscore/mscore/preferences.cpp musescore-1.0/mscore/mscore/preferences.cpp --- musescore-1.0~/mscore/mscore/preferences.cpp 2011-02-04 21:13:12.000000000 +0000 +++ musescore-1.0/mscore/mscore/preferences.cpp 2011-02-14 17:19:18.165824863 +0000 @@ -115,7 +115,7 @@ bgUseColor = true; fgUseColor = false; bgWallpaper = QString(); - fgWallpaper = ":/data/paper5.png"; + fgWallpaper = "/usr/share/mscore/wallpaper/paper4.png"; fgColor.setRgb(255, 255, 255); bgColor.setRgb(0x76, 0x76, 0x6e); @@ -163,7 +163,7 @@ layoutBreakColor = Qt::green; antialiasedDrawing = true; sessionStart = SCORE_SESSION; - startScore = ":/data/Promenade_Example.mscx"; + startScore = "/usr/share/mscore/demos/promenade.mscx"; workingDirectory = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); showSplashScreen = true; @@ -183,7 +183,7 @@ midiExpandRepeats = true; playRepeats = true; - instrumentList = ":/data/instruments.xml"; + instrumentList = "/usr/share/mscore/templates/instruments.xml"; alternateNoteEntryMethod = false; proximity = 6; @@ -344,7 +344,7 @@ bgUseColor = s.value("bgUseColor", true).toBool(); fgUseColor = s.value("fgUseColor", false).toBool(); bgWallpaper = s.value("bgWallpaper").toString(); - fgWallpaper = s.value("fgWallpaper", ":/data/paper5.png").toString(); + fgWallpaper = s.value("fgWallpaper", "/usr/share/mscore/wallpaper/paper4.png").toString(); fgColor = s.value("fgColor", QColor(255, 255, 255)).value(); bgColor = s.value("bgColor", QColor(0x76, 0x76, 0x6e)).value(); @@ -449,7 +449,7 @@ else if (ss == "empty") sessionStart = EMPTY_SESSION; - startScore = s.value("startScore", ":/data/Promenade_Example.mscx").toString(); + startScore = s.value("startScore", "/usr/share/mscore/demos/promenade.mscx").toString(); instrumentList = s.value("instrumentList", ":/data/instruments.xml").toString(); s.beginGroup("PlayPanel");