So, I think gizmod is awfully impressive, but there are some changes I would like to make in an effort to improve it. For example, it seems to me that copying all of the files from /etc/gizmod into ~/.gizmod, instead of just the configuration scripts, is sort of weird. That means that changes made to the dispatcher, or other core component, won't be automatically integrated into a user install. Same goes for the individual scripts... I want to make changes to just the Mplayer scripts, but that means that any changes to the other scripts won't be picked up.
Anyway, I think I know enough general scripting principles to make these sorts of changes on my own (though it may take me a while to fully understand how gizmod is setup... oh, and I suppose I have to learn python). My real reason for posting is to ask if there is some sort of mailing list to discuss this stuff? A forum really isn't the ideal format... and doesn't work at all for sending patch files :)
Any chance one could be setup for quicker communication? Or am I just missing it?
-Sean
p.s. I made some changes to the wiki to reflect the real way to do user scripts... the text suggested that you only have to copy over /etc/gizmod/modules.d/ when you actually have to copy over the entire /etc/gizmod/ directory!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps, maybe, I spoke too soon... the file loading code is in C++, which I haven't coded in, err, five years now. Guess it's time to hunker down and remember all that stuff AND learn python.
This project should be a lot of fun :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah the loading code is done in Python, although I'm not set in stone on having it done this way. This was the best way I could think to handle the dynamic loading of scripts, but if there's a better way I'm totally open to anything!
I may have time to look at this for the next release, although I am quite busy with other things at the moment, so if you're feeling like doing some (re)learning, as I said before, I'll be happy to accept any commits from you, and to offer a hand in understanding the code base, or to bounce ideas off of.
Thanks for your interest in helping make gizmod better! Look forward to seeing what you come up with!
Tim.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're quite right. I've never been happy with the way the user scripts work, I just haven't had time to revamp that yet. It should be _fairly_ straight forward to get it to look in the users home dir for scripts and use those if detected over other ones.
It does get a bit complicated though. What if the user changed 510-somescript.py to 324-somecript.py, then there would be two conflicting scripts loaded. But I suppose it's easy enough to say the owness is on the user in this case.
Or it may be a good idea to only load scripts from the users home dir if they already exist in the etc/gizmod directory.
At any rate, I set up a gizmod-devel mailing list. Sourceforge says it could take 24 hours to become active. If you're feeling like getting a bit dirty with some C++ code then by all means I'd love to incorporate whatever improvements you make!
Also, thanks for the changes to the wiki! Obviously this is an area I haven't done much testing on, since I don't actually use this feature, but I really should since it's likely quite important to most users!
Tim.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Tim, I posted to the mailing list a few days ago and didn't hear anything back... which means either (a) you've been busy, (b) because the list is new you haven't had a chance to subscribe, (c) I've hugely offended you and any chance of collaboration has been ruined.
Personally, I hoping for either (a) or (b)...
-Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hahah it's definitely not c). I guess I just assumed it would have added me to the mailing list. Thanks for leaving the note, I'll check the list and reply there!
Thanks,
Tim.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So, I think gizmod is awfully impressive, but there are some changes I would like to make in an effort to improve it. For example, it seems to me that copying all of the files from /etc/gizmod into ~/.gizmod, instead of just the configuration scripts, is sort of weird. That means that changes made to the dispatcher, or other core component, won't be automatically integrated into a user install. Same goes for the individual scripts... I want to make changes to just the Mplayer scripts, but that means that any changes to the other scripts won't be picked up.
Anyway, I think I know enough general scripting principles to make these sorts of changes on my own (though it may take me a while to fully understand how gizmod is setup... oh, and I suppose I have to learn python). My real reason for posting is to ask if there is some sort of mailing list to discuss this stuff? A forum really isn't the ideal format... and doesn't work at all for sending patch files :)
Any chance one could be setup for quicker communication? Or am I just missing it?
-Sean
p.s. I made some changes to the wiki to reflect the real way to do user scripts... the text suggested that you only have to copy over /etc/gizmod/modules.d/ when you actually have to copy over the entire /etc/gizmod/ directory!
Perhaps, maybe, I spoke too soon... the file loading code is in C++, which I haven't coded in, err, five years now. Guess it's time to hunker down and remember all that stuff AND learn python.
This project should be a lot of fun :)
Yeah the loading code is done in Python, although I'm not set in stone on having it done this way. This was the best way I could think to handle the dynamic loading of scripts, but if there's a better way I'm totally open to anything!
I may have time to look at this for the next release, although I am quite busy with other things at the moment, so if you're feeling like doing some (re)learning, as I said before, I'll be happy to accept any commits from you, and to offer a hand in understanding the code base, or to bounce ideas off of.
Thanks for your interest in helping make gizmod better! Look forward to seeing what you come up with!
Tim.
Hey Sean,
You're quite right. I've never been happy with the way the user scripts work, I just haven't had time to revamp that yet. It should be _fairly_ straight forward to get it to look in the users home dir for scripts and use those if detected over other ones.
It does get a bit complicated though. What if the user changed 510-somescript.py to 324-somecript.py, then there would be two conflicting scripts loaded. But I suppose it's easy enough to say the owness is on the user in this case.
Or it may be a good idea to only load scripts from the users home dir if they already exist in the etc/gizmod directory.
At any rate, I set up a gizmod-devel mailing list. Sourceforge says it could take 24 hours to become active. If you're feeling like getting a bit dirty with some C++ code then by all means I'd love to incorporate whatever improvements you make!
Also, thanks for the changes to the wiki! Obviously this is an area I haven't done much testing on, since I don't actually use this feature, but I really should since it's likely quite important to most users!
Tim.
Hey Tim, I posted to the mailing list a few days ago and didn't hear anything back... which means either (a) you've been busy, (b) because the list is new you haven't had a chance to subscribe, (c) I've hugely offended you and any chance of collaboration has been ruined.
Personally, I hoping for either (a) or (b)...
-Sean
Hey Sean,
Hahah it's definitely not c). I guess I just assumed it would have added me to the mailing list. Thanks for leaving the note, I'll check the list and reply there!
Thanks,
Tim.