Deprecation of features #356
Replies: 6 comments 8 replies
-
"System commands: use the scripting feature instead" - that would be unfortunate. It´s any easy way to provide a mechanism, for e.g. cleanly shutting down their music server, to terminal agnostic people. |
Beta Was this translation helpful? Give feedback.
-
Well, that would need to run as root, no ? Anyway, on Centos 7 Lua is to old for myMPD for example, so all this does is replacing a simple and working solution by a new dependency and a more complex solution, or as the lua documentation says: "The os.execute function is powerful, but it is also highly system dependent.". (The same thing applies to "Chroot - use docker instead" BTW.) |
Beta Was this translation helpful? Give feedback.
-
this was the initial intention for the system commands feature. This feature has some drawbacks:
Both is fixed in the scripting feature and you can do even more with lua scripting. E.g. accessing all the myMPD API commands. Using os.execute should by straight forward on all linux distributions and works also with sudo as the system commands. Why do you run not an actual version of centos? I think mpd itself is rather outdated. The scripting feature was not developed to only replace the system commands, it can do much more, why should I maintain an old code path that is obsolete? |
Beta Was this translation helpful? Give feedback.
-
"you can do even more with lua scripting" thats certainly something which those to whom a shutdown command via a webinterface is targeted wont do. Anyway, so this means for one simple shell command like "sudo shutdown -h now" I will need to have install a scripting language and if it´s not recent enough update the OS ? Strikes me as rather unelegant. But ok, then this is so. |
Beta Was this translation helpful? Give feedback.
-
Although it's a pity that system commands have been or are to be deprecated (I used them also for just shutting down the system properly and easily), it was really simple to implement Lua based shutdown and it does not feel bloated at all. @jcorporation Jürgen, have system commands really been deprecated yet or will this happen in the near future? I've just upgraded to 7.0.2 and my old syscmds based shutdown is still in the menu and it even works which surprises me... Regarding a recent OS: Best decision ever (besides myMPD of course) was to use Arch Linux ARM on my music player Pi 1B as it is fast, does not have any issues with outdated software and is definitely more than stable enough to use it as a music player. How it worked for me:
Content of Ausschalten.lua: |
Beta Was this translation helpful? Give feedback.
-
In the v8.0 branch are all deprecated features removed. In the starke Branche only WebDAV was removed. Such changes are mentioned in the release notes. |
Beta Was this translation helpful? Give feedback.
-
Following features are considered deprecated and are removed in the 7.x versions.
Beta Was this translation helpful? Give feedback.
All reactions