2007-06-18 19:24:06 -04:00
|
|
|
$OpenBSD: patch-kaffeine_src_instwizard_cpp,v 1.4 2007/06/18 23:24:06 jakemsr Exp $
|
|
|
|
--- kaffeine/src/instwizard.cpp.orig Fri Apr 13 07:54:43 2007
|
|
|
|
+++ kaffeine/src/instwizard.cpp Mon Jun 18 01:07:55 2007
|
2006-12-03 20:20:31 -05:00
|
|
|
@@ -107,7 +107,7 @@ void InstWizard::internalWizard()
|
2006-06-11 06:32:57 -04:00
|
|
|
*/
|
|
|
|
//WIN32-CODECS
|
|
|
|
info << "<hr><b>" << i18n("WIN32 Codecs") << "...</b><br>";
|
|
|
|
- QDir d("/usr/lib/win32");
|
|
|
|
+ QDir d("/usr/local/lib/win32");
|
|
|
|
QStringList entries = d.entryList("wmv*");
|
|
|
|
if (entries.count())
|
|
|
|
info << "<font color=\"DarkGreen\">" << i18n("Ok.") << "</font>";
|
2006-12-03 20:20:31 -05:00
|
|
|
@@ -125,13 +125,13 @@ void InstWizard::internalWizard()
|
2006-06-11 06:32:57 -04:00
|
|
|
else
|
|
|
|
{
|
|
|
|
d = QDir("/usr/local/lib");
|
|
|
|
- entries = d.entryList("libdvdcss.so*");
|
|
|
|
+ entries = d.entryList("libdvd.so*");
|
|
|
|
if (entries.count())
|
|
|
|
dvdcss = true;
|
|
|
|
else
|
|
|
|
{
|
|
|
|
d = QDir("/usr/lib64");
|
|
|
|
- entries = d.entryList("libdvdcss.so*");
|
|
|
|
+ entries = d.entryList("libdvd.so*");
|
|
|
|
if (entries.count())
|
|
|
|
dvdcss = true;
|
|
|
|
}
|
2006-12-03 20:20:31 -05:00
|
|
|
@@ -142,6 +142,7 @@ void InstWizard::internalWizard()
|
2006-06-11 06:32:57 -04:00
|
|
|
else
|
|
|
|
info << "<font color=\"DarkGreen\">" << i18n("Ok.") << "</font>";
|
|
|
|
|
|
|
|
+#if !defined(__OpenBSD__)
|
|
|
|
//DVD-DRIVE
|
|
|
|
info << "<br><hr><b>" << i18n("DVD Drive") << "...</b><br>";
|
|
|
|
KProcess process;
|
2006-12-03 20:20:31 -05:00
|
|
|
@@ -156,6 +157,7 @@ void InstWizard::internalWizard()
|
2006-06-11 06:32:57 -04:00
|
|
|
else
|
|
|
|
info << "<font color=\"DarkBlue\">" << i18n("Can't check DMA mode. Permission denied or no such device:")
|
|
|
|
<< " \"/dev/dvd\".</font>";
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
//DVB-DEVICES
|
2006-12-03 20:20:31 -05:00
|
|
|
#ifdef HAVE_DVB
|
2007-04-07 12:29:15 -04:00
|
|
|
@@ -274,5 +276,6 @@ void InstWizard::slotStdout(KProcess *, char *buffer,
|
2006-06-11 06:32:57 -04:00
|
|
|
{
|
2006-10-29 18:36:39 -05:00
|
|
|
QString output = QString::fromLatin1(buffer, buflen);
|
|
|
|
kdDebug() << "WizardDialog: got from hdparm: " << output << "\n";
|
|
|
|
+#undef stdout
|
|
|
|
stdout.append(output);
|
2006-06-11 06:32:57 -04:00
|
|
|
}
|