Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

User Folder vs. Program Folder

Author
Message
  Topic Search Topic Search
ScottA View Drop Down
Member
Member


Joined: 2011 Jan 07
Online Status: Offline
Posts: 2288
Direct Link To This Post Topic: User Folder vs. Program Folder
    Posted: 2014 Mar 22 at 8:24am

User Information:

Cinema 4D Version:   13 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

Hi,

When I started making plugins for C4D there was no such thing as a User Folder. The one that's in the hidden AppData folder in Windows. And now we're supposed to put our plugins in this new User Folder.
But I confess that I've never done that. Because I'm a creature of habit. And once I get comfortable with something. I don't usually change my habit unless there's a darn good reason to change.

So here I am years later.
I've created just about every type of plugin there is. Including custom libraries. And I've never had a problem with having my plugins in the Program Folder where they've always been in older versions.
*I'm also still using R13 if that matters.

So I'm wondering what's the difference (if any) between these two locations for storing plugins?
As far as I can see. They are working equally as well in either folder. And I don't see any reason or benefit to stop putting them in the Program Folder where I've always put them.

-ScottA
Back to Top
kuroyume0161 View Drop Down
Member
Member
Avatar

Joined: 2002 Oct 29
Location: United States
Online Status: Offline
Posts: 3665
Direct Link To This Post Posted: 2014 Mar 22 at 10:05am
Putting the plugins in either folder doesn't matter.  It is more about permissions to write to the Applications/Program folder on MacOS X and Windows Vista (and later).  Many plugin developers were storing (writing) data, preferences, etc. to their plugin folder (GeGetPluginFolder()) in the past but this now fails in these later OS's since one has to have permission to do so.

I still put my plugins in the Cinema 4D install plugins folder but save data/etc. to the Users folder to avoid that 'feature'.
Back to Top
spedler View Drop Down
Member
Member


Joined: 2008 Apr 19
Location: United Kingdom
Online Status: Offline
Posts: 680
Direct Link To This Post Posted: 2014 Mar 22 at 10:25am
For X-Particles we strongly recommend that users put the plugin in the user folder, again because of write permissions. It wouldn't matter if we were storing only data - as Robert says, we could do that in the user folder regardless of where the plugin binary was, but our online updater needs to replace the binary and that can't be done in the applications folder.

So personally I'd recommend always using the user folder - you never know when that might become essential.
Back to Top
ScottA View Drop Down
Member
Member


Joined: 2011 Jan 07
Online Status: Offline
Posts: 2288
Direct Link To This Post Posted: 2014 Mar 22 at 11:00am
Oh. I see.
I've never run into that situation. But I don't think I've ever written a plugin that has an option for the user to save things like preferences to the HD either.
That's probably why I haven't had any problems so far using the Program Folder.

Thanks for clearing that up guys.

-ScottA
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.