void-packages/srcpkgs/qmmp/patches/projectM-config_inp.patch
Jürgen Buchmüller fcfcca02b8 qmmp: fix projectM path to config.inp
Our projectM package installs the file to usr/libexec/projectM/config.inp
2021-02-12 15:24:11 +01:00

22 lines
1 KiB
Diff

--- src/plugins/Visual/projectm/projectm.pro 2021-02-04 20:09:45.000000000 +0100
+++ src/plugins/Visual/projectm/projectm.pro 2021-02-12 15:19:03.951750274 +0100
@@ -22,6 +22,7 @@
LIBS += -L/usr/lib -I/usr/include
#projectM config path
PROJECTM_CONFIG_FILES = /usr/share/projectM/config.inp \
+ /usr/libexec/projectM/config.inp \
/usr/local/share/projectM/config.inp
for(path, PROJECTM_CONFIG_FILES) {
exists($$path) {
diff -rub a/src/plugins/Visual/projectm/projectmwidget.cpp b/src/plugins/Visual/projectm/projectmwidget.cpp
--- src/plugins/Visual/projectm/projectmwidget.cpp 2021-02-04 20:09:45.000000000 +0100
+++ src/plugins/Visual/projectm/projectmwidget.cpp 2021-02-12 15:22:26.833419341 +0100
@@ -34,7 +34,7 @@
#include "projectmwidget.h"
#ifndef PROJECTM_CONFIG
-#define PROJECTM_CONFIG "/usr/share/projectM/config.inp"
+#define PROJECTM_CONFIG "/usr/libexec/projectM/config.inp"
#endif
ProjectMWidget::ProjectMWidget(QListWidget *listWidget, QWidget *parent)