【问题标题】:Ubuntu: Mpsyt do not work from cronUbuntu:Mpsyt 在 cron 中不起作用
【发布时间】:2018-11-13 07:03:22
【问题描述】:

当我输入时:

mpsyt .La isla bonita, 1

有效。

当我将它复制到 cron 时。它没有。 我要求将输出发送到文件:>mpsyt.log 2>mpsyt.error.log

日志:

mpris interface couldn't be initialized. Is dbus properly configured?

^[]2;mpsyt^G

错误日志为空。

似乎 cron 没有启动 mpris/dbus api/interface。如何让它发挥作用?

我想将它与 Google 助理一起使用。当 cron 脚本检测到播放歌曲的命令时,它应该使用 mpsyt 查找并播放它。

K.

【问题讨论】:

标签: ubuntu cron dbus


【解决方案1】:

来自 github 的人给我发了一个答案。

  1. Mpsyt 必须是最新版本(可能是因为我的问题而添加了该功能)。
  2. mpsyt set mpris false, /La isla bonita, 1
  3. 来自 2 的命令将从 cron 播放 La isla bonita。

K.

【讨论】:

    猜你喜欢
    • 2015-01-05
    • 2016-11-22
    • 2016-01-23
    • 2017-07-09
    • 1970-01-01
    • 2016-07-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多