mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-22 03:30:17 +00:00
* Remove patches related to C++ standards in CMake files because spotify-qt "now requires C++17 on all platforms, as required by Qt6" * Remove ghc filesystem.hpp patch because it was replaced with std. See release notes in https://github.com/kraxarn/spotify-qt/releases/tag/v4.0.0
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
diff '--color=auto' -uNr spotify-qt-3.9/src/spotifyclient/helper.cpp spotify-qt-3.9.mod/src/spotifyclient/helper.cpp
|
|
--- spotify-qt-3.9/src/spotifyclient/helper.cpp 2022-07-13 01:07:50.000000000 +0530
|
|
+++ spotify-qt-3.9.mod/src/spotifyclient/helper.cpp 2022-11-27 23:42:38.296679095 +0530
|
|
@@ -131,13 +131,13 @@
|
|
|
|
auto SpotifyClient::Helper::running(const QString &path) -> bool
|
|
{
|
|
- if (path.isEmpty() || !QFile("/usr/bin/ps").exists())
|
|
+ if (path.isEmpty() || !QFile("@TERMUX_PREFIX@/bin/ps").exists())
|
|
{
|
|
return false;
|
|
}
|
|
|
|
QProcess ps;
|
|
- ps.start("/usr/bin/ps", {"aux"});
|
|
+ ps.start("@TERMUX_PREFIX@/bin/ps", {"aux"});
|
|
ps.waitForFinished();
|
|
auto out = ps.readAllStandardOutput();
|
|
return QString(out).contains(path);
|
|
diff '--color=auto' -uNr spotify-qt-3.9/src/util/appinstalltype.cpp spotify-qt-3.9.mod/src/util/appinstalltype.cpp
|
|
--- spotify-qt-3.9/src/util/appinstalltype.cpp 2022-07-13 01:07:50.000000000 +0530
|
|
+++ spotify-qt-3.9.mod/src/util/appinstalltype.cpp 2022-11-27 23:43:59.700634507 +0530
|
|
@@ -30,12 +30,12 @@
|
|
|
|
auto AppInstallType::getInstallType(const QString &path) -> InstallType
|
|
{
|
|
- if (path.startsWith(QStringLiteral("/home/")))
|
|
+ if (path.startsWith(QStringLiteral("@TERMUX_HOME@/")))
|
|
{
|
|
return InstallType::User;
|
|
}
|
|
|
|
- if (path.startsWith(QStringLiteral("/usr/")))
|
|
+ if (path.startsWith(QStringLiteral("@TERMUX_PREFIX@/")))
|
|
{
|
|
return InstallType::System;
|
|
}
|