diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /debian/patches/sounds-dir | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'debian/patches/sounds-dir')
| -rw-r--r-- | debian/patches/sounds-dir | 51 |
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
+ }
|
