Refactor, robustness/correctness, plugins#52
Conversation
(cherry picked from commit 6998922)
commit df82f34 Author: ppenguin <hieronymusv@gmail.com> Date: Sun Apr 23 11:18:17 2023 +0200 init [wip] commit 6998922 Author: ppenguin <hieronymusv@gmail.com> Date: Sat Apr 22 23:42:44 2023 +0200 support custom WP dir commit 0c2e54b Author: ppenguin <hieronymusv@gmail.com> Date: Sat Apr 22 23:40:47 2023 +0200 init filters
|
Hi, thanks for the PR. Going on holiday atm so won't have to check it for a couple of weeks. Had a quick glance and looks good to me but I have a few reservations: 1 - Enkei support is great, but I couldn't help but notice that we're starting to get a flag bloat. There should be a better way to do this. I.e. pointing at the binary or introducing a .config (actually the latter feels like a good idea) Let me know what you think and I'll come back to you in a couple of weeks. Thanks! |
|
Thanks for your feedback. I started with My reason to prefer plugins over external scripts:
The post-process hook could be a way, but you'd have to have a way to both pass arbitrary arguments to the script call and pass Personally I'm not a fan of config files, especially not for scripts/programs that are intended to be executed from other scripts, So going forward I'd propose I first do the following:
In this way handling wallpaper downloads from different providers is clearly defined as core functionality, and all other things can be easily implemented additionally as plugins. There's no hurry, as I will only occassionally do a litttle work on this, it's one of several side projects and quite busy otherwise too. First enjoy your holiday! Footnotes
|
I realise this is a huge PR, but if acceptable I think it would be preferrable to include everything, since it would be time-consuming to break it down into smaller parts.
The changes in this PR should be completely backward compatible in terms of the script's original behaviour for pre-existing arguments/flags.
The goal/result of the changes is as follows:
enkeifor setting wallpaper