I have a weird problem and can't figure. I am including files from my @Resource folder. That works fine except for Metadata. Is there a restriction of some kind.
While the variables are overwritten by the inlcude file, the metadata seem to be not. When I refresh the skin and select Manage skin from the context menu, the Metadata are empty.
I have a weird problem and can't figure. I am including files from my @Resource folder. That works fine except for Metadata. Is there a restriction of some kind.
While the variables are overwritten by the inlcude file, the metadata seem to be not. When I refresh the skin and select Manage skin from the context menu, the Metadata are empty.
Any idea?
Metadata is not read and interpreted at all by the main Rainmeter application, only the Manage window. That is just reading the .ini file and will never see anything in an @Include file. You really can't, nor is there any real need to, put Metadata in a .inc file.
Well, if you want the same metadata information in all skins of a suite, @including it and only having it in one file would seem to be a sensible approach to me...
MerlinTheRed wrote:Well, if you want the same metadata information in all skins of a suite, @including it and only having it in one file would seem to be a sensible approach to me...
Well you can't...
The Manage window is the only thing that needs or uses Metadata, and it would be crazy to actually load the skin in Rainmeter (or some subset of Rainmeter) every time you viewed it (don't forget, nothing in Manage says a skin must be "loaded" to view the Metadata) just to resolve information in include files, not to forget that we would also have to resolve any variables using in the @Include option, like #@#.
I'm sure something light-weight could be done in Manage itself to accomplish this, but I have a hard time thinking of anything I would see as a lower priority...
I would oppose this, actually. The purpose of metadata is to make it as easy and reliable as possible to identify a skin .ini file without an external reference - in other words, it's something that needs to be in the code.
Skins are frequently copied and excerpted around the Internet without any context. Readme files get lost or deleted; support links get broken; older versions become mismatched with newer versions; modifications eventually distort the original skin beyond recognition. Having good, accurate metadata right there in the file makes it so much easier (and faster) to trace those skins back to their original sources and find whatever solution is needed.
Besides which, how much metadata can you really include? "Name" is supposed to be unique for every .ini. "Information" typically is anyway, if the instructions are any good. "Author," "Version" and "License" might be identical for a whole suite, but in my opinion, those three are probably the most important elements to have embedded in the code, for the reasons I described above.
In short, I think it's really important to have this stuff hard-coded, and I would continue doing so in my skins even if an include option were available.