Troubleshooting Lua "qdbus" command via os.execute()

85 Views Asked by At

I'm using ArchLinux/KDE/Plasma and I'm trying to program a lua script (as a plugin in TeamSpeak 3) that will execute the following command, which works in my terminal emulator, but not via a Lua script (that seems to be running as the same user).

The following fails:

os.execute("qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause")

I'm wondering if it's a permissions or library requirement? I know os.execute is working though, because I can run system notifications. I've tried alternative commands like machinectl, but those fail as well. I'm very new to Lua, do I need a dbus library? If so, I have no clue how to implement it.

0

There are 0 best solutions below