Hey there, I have a few commands that I want to be able to trigger through Kdeconnects "Run command" plugin. I've noticed that any that include special characters (eg '";&) just flat out don't run. To give an example: kill -s TERM `pgrep thunderbird` never does anything through run command, but works perfectly on the local commandline of the host machine. I've also found that where I want to run two separate commands, each of which works by themselves, if I separate them with & or ; then the first runs but the second doesn't. I'm running Ubuntu Yakkety which seems to have Kdeconnect 0.8 along with the FDroid version of the Android app (1.4.4). I'm not sure, but this bug seems to be related to special characters not being escaped, possibly also causing bug #52452 and bug #211735.
Gah. I just noticed that those two bugs I mentioned, which were suggested by this bug tracker (Bugzilla?), are actually in different products and thus are irrelevant. The pattern of seeing commands with special characters fail though is consistent and relevant.
The Run Command plugin was never included in KDE Connect 0.8. The first version with this plugin is 1.0. During development, we found that these kind of commands didn't work, but for the final 1.0 release that was fixed. It might be that Ubuntu packagers are trying to release a development version instead of using the oficial releases... they do that sometimes to have the "cool stuff" before other distros, and then this kind of problems happen. Could you ask Ubuntu to just update to 1.0.2? That way it will fix the problem for you and every other Ubuntu user.
*sigh* Understood and will do.