summaryrefslogtreecommitdiff
path: root/debian/patches/sounds-dir
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/sounds-dir')
-rw-r--r--debian/patches/sounds-dir51
1 files changed, 51 insertions, 0 deletions
diff --git a/debian/patches/sounds-dir b/debian/patches/sounds-dir
new file mode 100644
index 00000000..41693129
--- /dev/null
+++ b/debian/patches/sounds-dir
@@ -0,0 +1,51 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1778,7 +1778,7 @@ install (DIRECTORY
+
+ install (DIRECTORY
+ ${PROJECT_SOURCE_DIR}/sounds
+- DESTINATION ${CMAKE_INSTALL_BINDIR}
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
+ #COMPONENT runtime
+ )
+
+--- a/widgets/displaytext.cpp
++++ b/widgets/displaytext.cpp
+@@ -929,7 +929,7 @@ void DisplayText::AudioAlerts()
+ connect(audio, SIGNAL(stateChanged(QAudio::State)), this, SLOT(handleStateChanged(QAudio::State)));
+ #else
+ if(m_config->alert_Enabled()) {
+- QString binPath = QCoreApplication::applicationDirPath();
++ QString binPath = "/usr/share/wsjtx";
+ #endif
+ QFile *effect2 = new QFile(this);
+ QFile *effect3 = new QFile(this);
+--- a/widgets/mainwindow.cpp
++++ b/widgets/mainwindow.cpp
+@@ -3332,7 +3332,7 @@ void MainWindow::fastSink(qint64 frames)
+ effect1->open(QIODevice::ReadOnly);
+ audio->start(effect1);
+ #else
+- QString binPath = QCoreApplication::applicationDirPath();
++ QString binPath = "/usr/share/wsjtx";
+ QSound::play(binPath + "/sounds/DXcall.wav"); // for Linux and macOS
+ #endif
+ play_DXcall = false;
+@@ -7102,7 +7102,7 @@ void MainWindow::readFromStdout()
+ effect1->open(QIODevice::ReadOnly);
+ audio->start(effect1);
+ #else
+- QString binPath = QCoreApplication::applicationDirPath();
++ QString binPath = "/usr/share/wsjtx";
+ QSound::play(binPath + "/sounds/DXcall.wav"); // for Linux and macOS
+ #endif
+ play_DXcall = false;
+@@ -10258,7 +10258,7 @@ void MainWindow::mousePressEvent(QMouseE
+ effect->open(QIODevice::ReadOnly);
+ audio->start(effect);
+ #else
+- QString binPath = QCoreApplication::applicationDirPath();
++ QString binPath = "/usr/share/wsjtx";
+ QSound::play(binPath + "/sounds/Testing_long.wav"); // for Linux and macOS
+ #endif
+ }