diff --git a/src/MpvPlayerBackend.cpp b/src/MpvPlayerBackend.cpp index 0a2a722..d827337 100644 --- a/src/MpvPlayerBackend.cpp +++ b/src/MpvPlayerBackend.cpp @@ -471,7 +471,7 @@ MpvPlayerBackend::updateDurationString() void MpvPlayerBackend::updateAppImage() { - update(); + updateAppImageLinux(); } void diff --git a/src/main.cpp b/src/main.cpp index 4d187bd..ab70def 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -93,7 +93,7 @@ main(int argc, char* argv[]) app.setApplicationName("KittehPlayer"); for (int i = 1; i < argc; ++i) { if (!qstrcmp(argv[i], "--update")) { - update(); + updateAppImageLinux(); } } diff --git a/src/utils.cpp b/src/utils.cpp index 7cb9485..22bf4d3 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -15,7 +15,7 @@ getPlatformName() return qapp->platformName(); } void -update() +updateAppImageLinux() { QString program = QProcessEnvironment::systemEnvironment().value("APPDIR", "") + diff --git a/src/utils.hpp b/src/utils.hpp index 88c5b6a..136d720 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -8,6 +8,6 @@ SetDPMS(bool on); void AlwaysOnTop(WId wid, bool on); void -update(); +updateAppImageLinux(); #endif