diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2025-07-28 21:01:51 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2025-08-08 06:43:58 +0300 |
commit | 3a0b3976b5f2b8c3e72d06c4e703b3fc6fd9ffea (patch) | |
tree | 63564bea49d2b53856ef1b0f98b886094d40c396 /libk3b/core/k3bdefaultexternalprograms.h | |
parent | ef96f9ee7092a5f226eacf706584d6263177c1ad (diff) | |
download | k3b-3a0b3976b5f2b8c3e72d06c4e703b3fc6fd9ffea.tar.gz k3b-3a0b3976b5f2b8c3e72d06c4e703b3fc6fd9ffea.zip |
Fix normalize/normalize-audio discovery
Look for both binary names "normalize-audio" (Debian) and "normalize"
(all the rest distributions) when looking for the executable.
Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/k3b/issues/58
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 8e4a3a799a2fb76a4dff8aaccc7d44027eb84f1b)
Diffstat (limited to 'libk3b/core/k3bdefaultexternalprograms.h')
-rw-r--r-- | libk3b/core/k3bdefaultexternalprograms.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libk3b/core/k3bdefaultexternalprograms.h b/libk3b/core/k3bdefaultexternalprograms.h index bc4d41c..daca769 100644 --- a/libk3b/core/k3bdefaultexternalprograms.h +++ b/libk3b/core/k3bdefaultexternalprograms.h @@ -102,6 +102,22 @@ class LIBK3B_EXPORT K3bNormalizeProgram : public K3bExternalProgram K3bNormalizeProgram(); bool scan( const TQString& ); + protected: + /** + * Returns list of names the executable of this program could be called + */ + TQStringList binNames() const; + + /** + * Verifies if binary on the given path suitable to be used by k3b and + * addBin()s it if so + */ + bool verifyAddBin( const TQString& path ); + + /** + * @note: it would make sense to make binNames() and verifyBin() virtuals in + * K3bExternalProgram and reimplement scan() in a more generic way. + */ }; |