Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Bug reports ➜ Invalid plugins directory / Does MC check for validity?

Invalid plugins directory / Does MC check for validity?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Kovarid   (15 posts)  Bio
Date Fri 13 Feb 2015 04:16 PM (UTC)
Message
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!
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 13 Feb 2015 07:44 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,023 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.