Hi Jesse,
Jesse Barnum wrote:
>
>
> Hi Jake - we don't store any preferences on the server at all, but if
> I did, I would put them where the OS would put them: /Library/
> FileMaker Server/Library/Preferences. I'm not sure off-hand what the
> corresponding Windows path would be.
I saw that path, but wasn't sure if my code had created it by
accident or if it was valid for the system.
>
> One downside of this approach is that the folder is not guest-
> readable, so the users would not be able to see the contents of this
> folder, but that's not necessarily a problem if you don't want the
> users mucking around with your preference files.
And therein lies the problem. I'm planning on creating a stand-alone
configuration app that a user can use to configure the plug-in on the
server side (since there's no way to do it from the server admin). So,
either I would have to put the preferences somewhere where a normal user
could get to it, or I would have to figure out how to use the system's
user/pass dialog to get access to it (if that would even work..).
I haven't tested on windows yet, so I'm not sure where it's going to
try to put anything when I ask the system for the user's pref folder,
but it seems like it'd be off in some application data folder somewhere.
So, for the sake of trying to be nice cross-platform (something I'm
always striving for), I don't think I want to put it in
/Library/FileMaker Server/Library/Preferences. I'd rather have a
location that's basically the same on both platforms.
You've probably dealt with server more than I have, and probably
dealt with customers trying to set up server more than I have ... can
you think of any reason why putting a "Preferences" folder in the "Data"
folder would cause problems?
Thanks,
Jake
>
> --Jesse Barnum, President, 360Works
>
http://www.360works.com <
http://www.360works.com> 770-234-9293
> FBA Platinum, FileMaker 8 Certified
> == SuperContainer: A Better Container Field ==
>
> On Jun 20, 2008, at 10:46 AM, Jake Traynham wrote:
>
> > Hello all,
> >
> > For those of you who have working server plug-ins, do any of you
> > store preferences on the server? I'm in the process of (finally)
> > making
> > my plug-ins work correctly on the server side and I'm trying to figure
> > out the best place to store some preferences. I have existing code
> > that
> > stores prefs in the same place as the actual plug-in file, but I'm not
> > sure that's the best place to store prefs on the server. One
> > reason is
> > that plug-ins for the server process and plug-ins for the WPE process
> > are in two different locations, meaning that there would be two
> > different prefs files for the two processes. While this may be
> > desirable in some situations, other situations (like storing
> > registration information) would not be.
> >
> > So, I'm trying to figure out if there's a more central place to
> > store
> > them and was wondering if anyone else had pondered this. On OS X, the
> > fmserver user owns the whole /Library/FileMaker Server folder
> > structure,
> > so I could obviously make a folder and put the prefs anywhere in
> > there,
> > but I don't want to "litter" a customers folder structure with
> > stuff. I
> > was contemplating making a folder in the "Data" folder called
> > "Prefs" or
> > "Preferences". Does anyone know if that would cause problems or if
> > somewhere else would make more sense?
> >
> > This obviously isn't sanctioned by FMI, but it seems like us
> > plug-in
> > developers could adopt a pattern and run with it. If we decided
> > together on something like this, then it would seem to make all of our
> > respective customers happy with it.
> >
> > Thanks for listening and any thoughts you have,
> > Jake
> >
--
Jake Traynham
Owner, CNS Plug-ins
http://www.cnsplug-ins.com/