FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Getting Program to Use Correct APPDATA User Directory

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Eric_Heumann



Joined: 05 Nov 2009
Posts: 1

PostPosted: Thu Nov 05, 2009 9:33 pm    Post subject: Getting Program to Use Correct APPDATA User Directory Reply with quote

Before I even started using the NetBeans IDE or experimenting with the platform, I was rather taken aback by the collection of .nbi, .netbeans, and .netbeans-registration folders in my home user directory. First off, it's the incorrect location to put user-specific application data, and second off, adding a period before the name doesn't hide it on Windows; it just makes the situation even uglier. I was further disappointed when I discovered that all applications built off the NetBeans Platform follow suit and also use the user home directory as the location to put their user-specific application data. As a developer, I guess I can put up with the IDE behaving this way (I can edit the IDE's config file and force it to put that data in a more appropriate location), but... I certainly don't expect my clients to do this with the applications I distribute.

The situation may not have been as bad with Windows XP users, since the user home was rarely visited. However, with Windows Vista and 7, the user home directory is visited extensively, and a collection of .xxx folders at the top a) looks bad, b) pushes the frequently used Music, Documents, etc folders further down the screen, and c) is generally bad practice since Microsoft provides the AppData folder for this purpose.

Has there been any discussion about this previously? I've searched multiple sources and only found a scattered thread of emails discussing the issue from several years ago.

My primary question: how can I change this behavior in the applications I develop and distribute?

After creating a distributable, I've attempted altering the etc/appname.conf file's netbeans_default_userdir entry from the default, ${HOME}/.${APPNAME}/dev, to ${APPDATA}/.${APPNAME}/dev, but the program doesn't seem to understand that environment variable.

I'd prefer not to use ${HOME}/AppData/Roaming/${APPNAME}/dev, since that is specific to Vista (XP would use Application Data instead of AppData/Roaming, and that is not correct at all on Linux systems).

Is there a more direct way of resolving this issue?
Back to top
View user's profile Send private message
dthompson



Joined: 19 Nov 2009
Posts: 2

PostPosted: Thu Nov 19, 2009 4:07 pm    Post subject: Changing the default conf options for RCP application Reply with quote

The options in the conf file are brought in at build time, so changing these values at build time has been the best way for me to add these options. I have seen a couple of resolutions, see http://old.nabble.com/netbeans_default_options-td21863524.html#a25011961 for a fairly clean solution.

Doug.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB