summarylogtreecommitdiffstats
path: root/fix_find_config.patch
blob: 145538679e369fc2d4e7f58f82f262d45b5d0af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -aur phonon-mplayer/mplayer/libmplayer/MPlayerConfig.cpp phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.cpp
--- phonon-mplayer/mplayer/libmplayer/MPlayerConfig.cpp	2011-11-24 18:06:31.105227140 -0800
+++ phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.cpp	2011-11-24 18:17:02.000000000 -0800
@@ -73,7 +73,7 @@
 	//Under Windows, config file should be inside a subdirectory named mplayer/mplayer
 	QString defaultMPlayerConfigPath = "mplayer/mplayer/config";
 #else
-	QString defaultMPlayerConfigPath = "~/.mplayer/config";
+	QString defaultMPlayerConfigPath = QDir::homePath()+"/.mplayer/config";
 #endif

 	return _settings.value("mplayer_config_path", defaultMPlayerConfigPath).toString();
diff -aur phonon-mplayer/mplayer/libmplayer/MPlayerConfig.h phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.h
--- phonon-mplayer/mplayer/libmplayer/MPlayerConfig.h	2011-11-24 18:06:31.105227140 -0800
+++ phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.h	2011-11-24 18:18:05.000000000 -0800
@@ -21,6 +21,7 @@

 #include <QtCore/QString>
 #include <QtCore/QSettings>
+#include <QtCore/QDir>

 namespace Phonon
 {