njumzs / mythdroid

Automatically exported from code.google.com/p/mythdroid
0 stars 0 forks source link

MDD extra commands problem #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of MythDroid were you using?
Trunk, which I believe is R562 if I understand SVN correctly :)

Which version of MDD?
Build.PL is R503

Which version of MythTV were you using? (e.g. mythfrontend --version)
0.23.1+fixes26437

What steps will reproduce the problem?

I have in /etc/mdd.conf:
# MDD commands
# command = Sleep => dbus-send --system --dest=org.freedesktop.DeviceKit.Power\
#  /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend
command = Log1 => /usr/bin/logger Hi from Mythdroid1
command = Log2 => /usr/bin/logger Hi from Mythdroid2

On Mythdroid when I menu/mdd commands, I get the choice box "Log1" and "Log2", 
good.

But when I select, say, "Log1",

I get in /tmp/mdd.log:
Wed 16 Nov 21:50:05 - Debug -   New connection from MythDroid
Wed 16 Nov 21:50:05 - Debug -   -> CMSG: COMMANDS
Wed 16 Nov 21:50:05 - Debug -   <- CMSG: OK
Wed 16 Nov 21:50:05 - Debug -   <- CMSG: COMMAND Log1
Wed 16 Nov 21:50:05 - Debug -   <- CMSG: COMMAND Log2
Wed 16 Nov 21:50:05 - Debug -   <- CMSG: COMMANDS DONE
Wed 16 Nov 21:50:09 - Debug -   -> CMSG: COMMAND Log1
Wed 16 Nov 21:50:09 - Debug -   <- CMSG: OK
Wed 16 Nov 21:50:09 - Error -   mdd command Log1 is not defined

What is the expected output? What do you see instead?
Expect output in /var/log/syslog
Instead no output; mdd Error as above

If you are reporting a 'force close' issue, please attach relevant logs
(e.g. from 'Log Collector', available via the market).

Please provide any additional information below.

Original issue reported on code.google.com by john.clo...@gmail.com on 17 Nov 2011 at 4:00

GoogleCodeExporter commented 8 years ago
Ok, it worked after I removed the spaces in /etc/mdd.conf:

command =Log1=>/usr/bin/logger Hi from Mythdroid1
command =Log2=>/usr/bin/logger Hi from Mythdroid2

Suggest changing the default conf file example
from: # command = Sleep => dbus-send .....
  to: # command =Sleep=> dbus-send ....

Original comment by john.clo...@gmail.com on 17 Nov 2011 at 4:35

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r566.

Original comment by foobum on 19 Nov 2011 at 1:20