diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:31:19 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:36:30 +0200 |
| commit | 21f73e7f21524d59760ddfef87a870e1aee3b610 (patch) | |
| tree | 8ac0df84ff7d3042859a5fde98f9e5c55df7cfa2 | |
| parent | 4e95d647e601a8e957cf1907f637f2d06543fb36 (diff) | |
Copy patch from wsjtx-improved to fix sounds location.debian/3.0.0_rc1+repack-1
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rw-r--r-- | debian/patches/sounds-dir | 51 |
3 files changed, 53 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 98316cf7..a0ff26f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ wsjtx (3.0.0~rc1+repack-1) unstable; urgency=medium https://wsjt.sourceforge.io. * debian/uupdate.sh: Get tarball name from version. * Add B-D libqt5websockets5-dev. + * Copy patch from wsjtx-improved to fix sounds location. -- Christoph Berg <myon@debian.org> Mon, 15 Sep 2025 23:04:44 +0200 diff --git a/debian/patches/series b/debian/patches/series index ba150d47..465d6cf5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -7,3 +7,4 @@ 0015-typos.patch defuse-expiry install-all-utils +sounds-dir diff --git a/debian/patches/sounds-dir b/debian/patches/sounds-dir new file mode 100644 index 00000000..13e2509e --- /dev/null +++ b/debian/patches/sounds-dir @@ -0,0 +1,51 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1783,7 +1783,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
+ }
|
