Comments in INI file

Any ideas about how to improve MediaMonkey? Let us know!

Moderator: Gurus

TheAncient
Posts: 25
Joined: Sat Mar 08, 2008 4:13 pm

Comments in INI file

Post 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?

Peke
Posts: 12226
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Comments in INI file

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

No, INI file is Dynamically re created from Memory and comments are ignored.
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

TheAncient
Posts: 25
Joined: Sat Mar 08, 2008 4:13 pm

Re: Comments in INI file

Post 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?

dtsig
Posts: 2995
Joined: Mon Jan 24, 2011 6:34 pm

Re: Comments in INI file

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

put it in the Wishlist topic section
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig

TheAncient
Posts: 25
Joined: Sat Mar 08, 2008 4:13 pm

Retain comments in the mediamonkey.ini file

Post 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.

Bob_m_54
Posts: 41
Joined: Wed May 06, 2015 6:17 pm

Re: Comments in INI file

Post 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.

TheAncient
Posts: 25
Joined: Sat Mar 08, 2008 4:13 pm

Re: Comments in INI file

Post 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.

Peke
Posts: 12226
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Comments in INI file

Post 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.
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

Post Reply