1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1312,7 +1312,7 @@ if (NOT UNIX)
if (UNIX)
install (DIRECTORY
${PROJECT_SOURCE_DIR}/sounds
- DESTINATION $ENV{HOME}
+ DESTINATION share/jtdx
#COMPONENT runtime
)
endif (UNIX)
--- a/displaytext.cpp
+++ b/displaytext.cpp
@@ -1342,7 +1342,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/MyCall.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/MyCall.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/MyCall.wav"); // for Linux and macOS
#endif
play_MyCall = false;
alertsTimer.start (1200);
@@ -1357,7 +1357,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/DXCC.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/DXCC.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/DXCC.wav"); // for Linux and macOS
#endif
play_DXCC = false;
play_DXCCOB = false;
@@ -1373,7 +1373,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/DXCCOnBand.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/DXCCOnBand.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/DXCCOnBand.wav"); // for Linux and macOS
#endif
play_DXCCOB = false;
alertsTimer.start (2000);
@@ -1388,7 +1388,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/CQZone.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/CQZone.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/CQZone.wav"); // for Linux and macOS
#endif
play_CQZ = false;
play_CQZOB = false;
@@ -1405,7 +1405,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/CQZoneOnBand.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/CQZoneOnBand.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/CQZoneOnBand.wav"); // for Linux and macOS
#endif
play_CQZOB = false;
alertsTimer.start (2000);
@@ -1420,7 +1420,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/ITUZone.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/ITUZone.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/ITUZone.wav"); // for Linux and macOS
#endif
play_ITUZ = false;
play_ITUZOB = false;
@@ -1436,7 +1436,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/ITUZoneOnBand.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/ITUZoneOnBand.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/ITUZoneOnBand.wav"); // for Linux and macOS
#endif
play_ITUZOB = false;
alertsTimer.start (2000);
@@ -1451,7 +1451,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/Grid.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/Grid.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/Grid.wav"); // for Linux and macOS
#endif
play_Grid = false;
play_GridOB = false;
@@ -1467,7 +1467,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/GridOnBand.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/GridOnBand.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/GridOnBand.wav"); // for Linux and macOS
#endif
play_GridOB = false;
alertsTimer.start (1800);
@@ -1482,7 +1482,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/Px.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/Px.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/Px.wav"); // for Linux and macOS
#endif
play_Px = false;
alertsTimer.start (1200);
@@ -1497,7 +1497,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/PxOnBand.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/PxOnBand.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/PxOnBand.wav"); // for Linux and macOS
#endif
play_PxOB = false;
play_CQ = false;
@@ -1513,7 +1513,7 @@ void DisplayText::AudioAlerts()
#ifdef WIN32
QSound::play("./bin/sounds/CQ.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/CQ.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/CQ.wav"); // for Linux and macOS
#endif
play_CQ = false;
alertsTimer.start (1000);
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -4076,7 +4076,7 @@ void MainWindow::readFromStdout()
#ifdef WIN32
QSound::play("./bin/sounds/DXcall.wav");
#else
- QSound::play(QDir::homePath() + "/sounds/DXcall.wav"); // for Linux and macOS
+ QSound::play("/usr/share/jtdx/sounds/DXcall.wav"); // for Linux and macOS
#endif
}
play_DXcall = false;
|