diff --git a/CMakeLists.txt b/CMakeLists.txt index 48544ac..3a72a6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ set(discord-screenaudio_SRC src/log.cpp src/userscript.cpp src/centralwidget.cpp + src/dependencycheck.cpp resources.qrc ) diff --git a/src/dependencycheck.cpp b/src/dependencycheck.cpp new file mode 100644 index 0000000..dd577ee --- /dev/null +++ b/src/dependencycheck.cpp @@ -0,0 +1,10 @@ +#include "dependencycheck.h" +#include "pipewire-0.3/pipewire/version.h" + +#include + +void checkDependencies() { + QString versionPipewire(pw_get_library_version()); + QMessageBox::information(nullptr, "Dependency Check", + QString("Pipewire: v%1").arg(versionPipewire)); +} diff --git a/src/dependencycheck.h b/src/dependencycheck.h new file mode 100644 index 0000000..4f52bc1 --- /dev/null +++ b/src/dependencycheck.h @@ -0,0 +1,3 @@ +#pragma once + +void checkDependencies(); diff --git a/src/main.cpp b/src/main.cpp index df1fec8..7fb53de 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,4 @@ +#include "dependencycheck.h" #include "mainwindow.h" #include "virtmic.h" @@ -49,6 +50,8 @@ int main(int argc, char *argv[]) { "--remote-debugging-port=9222 " + qgetenv("QTWEBENGINE_CHROMIUM_FLAGS")); + checkDependencies(); + MainWindow w(parser.isSet(notifySendOption)); w.show();