Invalid plugins directory / Does MC check for validity?

Posted by Kovarid on Fri 13 Feb 2015 04:16 PM — 2 posts, 11,688 views.

#0
Ran into an issue with one of the users of my MC Plugins wasn't loading icons properly, among other errors indicating something was wrong with his folder structure and/or permissions.

Upon investigation, I noticed that

GetInfo(60) reported (incorrect)
C:\Users\Billy\Documents\MUSHclient\worlds\plugins\

And GetInfo(66) reported (correct)
C\Users\B.money\Documents\MUSHclient\

This was due to him copying his MC directory from one computer to another, which had a different user name, but both resided in the Documents folder of the user.

MC worked fine, up until my plugin (which uses GetInfo(60) to get info) tried to load icons in his Plugins folder, or otherwise open files (self updating).

Now if the plugins directory as set in global options was a valid directory (exists) I could see that this is working as intended, but does MC check to see if it exists and send an error message if the plugin folder is invalid?

Not really a bug if it's working as intended, but seems prudent to check for a valid plugin folder if it's going to give the info out in GetInfo(60).

Just thought i'd report it.. Thanks!
Australia Forum Administrator #1
GetInfo(60) is "Plugin files default path (directory)".

No it doesn't check for validity. That is basically a string that is kept in the SQLite table for global configuration.

As far as I can make out from the source, it is basically used when saving a new plugin (with the plugin wizard) or loading an existing one, as the default starting place to look for plugins.