[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  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] Refresh page


Posted by Kovarid   (15 posts)  [Biography] 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!
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] 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.


8,329 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]