Comments in INI file

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Comments in INI file

Re: Comments in INI file

by Peke » Sat Aug 06, 2016 3:58 pm

This is more likely not to be added as INI file is dynamically generated and MMW can't know which one of custom comments should be saved and to which MMW option it references to.

Re: Comments in INI file

by TheAncient » Sat Aug 06, 2016 11:02 am

That is precisely what I am doing right now.
I do not know what is going on "behind the scenes" thus I don't know how tough it would be implement.
I just threw that out there as a suggestion that the authors could look at at some future date.

Re: Comments in INI file

by Bob_m_54 » Sat Aug 06, 2016 1:17 am

Having MM edit (append?) the .ini rather than rewrite it, which is what you would need to retain comments, would be a lot more complex to implement, than just creating a new .ini file. Maybe you could keep a copy of the basic .ini (call it myini or something) for you to refer to when you want to see why certain parameters are specified. Not perfect or nice and slick, but just a thought.

Retain comments in the mediamonkey.ini file

by TheAncient » Mon Jul 04, 2016 4:52 pm

When you start MediaMonkey, it reads certain parameters from a Mediamonkey.INI file.
When you later close Mediamonkey, the Mediamonkey.INI file is re-written to capture any changes you have made to those parameters (for example, you may have switched skins)

My .INI file contains comments (lines prefixed by a semi-colon) to explain why I chose certain settings and to note alternatives such as different database locations.
Mediamonkey removes those comment lines as it re-writes the .ini file when it closes.

I suggest, you provide the capability to retain the comments in the INI file.

Re: Comments in INI file

by dtsig » Mon Jul 04, 2016 11:15 am

put it in the Wishlist topic section

Re: Comments in INI file

by TheAncient » Mon Jul 04, 2016 9:08 am

I realize, that is what it DOES (I said so in my original post). The question was, how can I avoid that behaviour?
Maybe there are different ways to specify a comment (e.g. using asterisks-es and/or slashes) that will not be removed?
Maybe there is a way to submit this as a suggestion for an enhancement to be incorporated in a future release?

Re: Comments in INI file

by Peke » Mon Jul 04, 2016 8:11 am

No, INI file is Dynamically re created from Memory and comments are ignored.

Comments in INI file

by TheAncient » Sun Jul 03, 2016 3:05 pm

When you start MediaMonkey, it reads certain parameters from a Mediamonkey.INI file.
When you later close Mediamonkey, the Mediamonkey.INI file is re-written to capture any changes you have made to those parameters (for example, you may have switched skins)

My .INI file contains comments (lines prefixed by a semi-colon) to explain why I chose certain settings and to note alternatives such as different database locations.
Mediamonkey removes those comment lines as it re-writes the .ini file when it closes.

Is there any way to retain the comments in the INI file?

Top