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

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.

Related

Run lua file other than main in replit

I'm trying to run a lua file other than main on replit.com, and I'm not sure how to do that. I know in java you just type "java name_of_file" into the terminal but typing "lua name_of_file) doesn't work.
Here is a screenshot of what I'm trying to do:
Here is my code on replit, so you can try running it: https://replit.com/join/kxisutsa-suzm10
You are currently in console, use shell instead and use lua activity.lua to run the activity.lua file.

How to run an MSIX installed application from the command line

I have an application packaged and signed as an MSIX, it installs and runs from the start menu. I'd like to be able to run the application from the command line too, for automated testing, but I can't see a way to do it. From powershell the docs suggest Invoke-CommandInsideDesktopPackage, but that requires developer mode which I'd rather not enable on test machines, and also is not the same as just running the app. What I'd love is a simple command line command that starts the app in the same way that the start menu does it.
By design, the binaries from an installation folder of an MSIX folder are not directly accessible through their direct path.
The correct way to run an app from the command line from an MSIX package is with the use of an execution alias. The following article contains more details about how an execution alias works and how you can define it in your package, no matter the tool you use to build the MSIX package.
- App Execution Alias
Also, here is a related question on SO.

How do I run a Lua script on fceux on Mac os?

First I start the emulator.
Then I load dragon warrior ROM.
Then I try to access the lua script menu.
However fceux will not let me access the main menus anymore. I can only control the emulator.
What is the right way to run a Lua script in version 2.2.3?
The documentation below is obviously lacking. No window pops up. See the **** there is no run Lua script option.
The fceux docs say this:
To run a Lua script, choose "Run Lua Script" from where  In the dialog that pops up, click "Browse" and find the file you wish to run.  This will insert the path of this file into the dialog.  You can then click on "Run" to run the script or "Cancel" to return to FCEUX without running the script.
To end a Lua script, choose "Stop Lua Script" from where.
You're reading documentation for the windows version and trying to apply it to the portable version. They aren't the same. Learn to use wine or virtualization and use the windows version.
If you insist in using the portable version, you can use --loadlua myfile.lua, assuming your fceux has been built with lua support (and who can say how it was built on linux or osx?)

Atom Run F# script, Windows 7 error

I am trying to run F# script from Atom editor but kept on getting the following error:
Unable to run fsi is it in your path?
I've checked the environment variables and the path is set correctly and can run it from the command prompt. Also others suggested running Atom from command prompt, I did that but still the same. Is Atom looking for files in a case sensitive way? (If so that may be the issue as the F# interactive is "Fsi.exe").

Using TDBLoader in JENA

I'm trying to learn how to use TDBLoader using this example I found:
https://github.com/ijdickinson/jena-tdb-ont-example
However, when trying to run the init-demo script, I keep running into issues
https://github.com/ijdickinson/jena-tdb-ont-example/blob/master/src/main/script/init-demo
I'm using cygwin to attempt to run the script, but I keep getting please ensure $Path contains $TDBROOT/bin
I set TDBROOT= C:\Development\apache-jena-2.12.1
And my Path has "%TDBROOT\bin"
I'm really new to using command line and shell scripts, so I'm not at all familiar with how to go about debugging this.
I have my tdbloader in apache-jena-2.12.1\bin , is there a way I can check if this is even working? Or if my path is properly set?
I tried "tdbloader" and "-v tdbloader" in command line and I get "tdbloader" is not recognized...
That's not supposed to happen if my path is set correctly, right?

Resources