[mythtv] MythDVD needs mtd in PATH

Nigel Pearson nigel at ind.tansu.com.au
Mon Aug 28 04:11:50 UTC 2006


	If mtd isn't in the user's path, the MythDVD
plugin will fail to start it, something like:

sh: line 1: mtd: No such file or directory.

Probably only an issue on OS X (standalone package)
or for people who have stuffed up their path,
but any objections to:

Index: mythplugins/mythdvd/mythdvd/dvdripbox.cpp
===================================================================
--- dvdripbox.cpp       (revision 10955)
+++ dvdripbox.cpp       (working copy)
@@ -250,10 +250,12 @@
  {
      if(try_to_run_mtd && !tried_mtd)
      {
+        QString path = gContext->GetInstallPrefix() + "/bin/mtd";
+
          //
          //  it should daemonize itself and then return
          //
-        system("mtd -d");
+        system(path + " -d");
          //
          //  but we need to wait a wee bit for the
          //  socket to open up

--
Nigel Pearson, nigel at ind.tansu.com.au| "Peacemaking is our profession"
Telstra Net. Eng., Sydney, Australia |Motto of Burpelson Airforce Base
Office: 9202 3900    Fax:  9261 3912 |Commanded by Gen. Jack D. Ripper
Mobile: 0408 664435  Home: 9792 6998 |        Dr Strangelove


More information about the mythtv-dev mailing list