Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Need to workaround to using @user.home on Vista for FDCC compliance
Need to workaround to using @user.home on Vista for FDCC compliance [message #487795] Thu, 24 September 2009 12:53 Go to next message
Ryan Norris is currently offline Ryan NorrisFriend
Messages: 18
Registered: July 2009
Junior Member
I'm working on an application that has to adhere to FDCC compliance. We use @user.home in the application exe's .ini file to specify the osgi.instance.area relative to the user. The problem is that this does not always work on Vista. @user.home is replaced by the platform with the Java "user.home" system property and this property is not always set correctly as described in the Java bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519127. Unfortunately this bug has been open for over 2 years with no sign of a fix coming.

Is there a way to workaround this issue by specifying a user.home-like value in the exe's .ini file or config file? Should the platform not use the user.home Java system property value on Vista but instead use the lookup described in the registry key that Java accesses to get the user.home value (see Java bug for details)?

I need to solve this problem but can't figure it out, since the users of our application will not have admin rights (FDCC requirement) and can only write to their user area, yet other than using @user.home I don't know how to make this dymanic.

Any help would be greatly appreciated.

-Ryan

Re: Need to workaround to using @user.home on Vista for FDCC compliance [message #488573 is a reply to message #487795] Tue, 29 September 2009 10:02 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Ryan Norris wrote:
> I'm working on an application that has to adhere to FDCC compliance.
> We use @user.home in the application exe's .ini file to specify the
> osgi.instance.area relative to the user. The problem is that this
> does not always work on Vista. @user.home is replaced by the platform
> with the Java "user.home" system property and this property is not
> always set correctly as described in the Java bug:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519127.
> Unfortunately this bug has been open for over 2 years with no sign of
> a fix coming.
> Is there a way to workaround this issue by specifying a user.home-like
> value in the exe's .ini file or config file? Should the platform not
> use the user.home Java system property value on Vista but instead use
> the lookup described in the registry key that Java accesses to get the
> user.home value (see Java bug for details)?
Pass -Duser.home=YOUR_VALUE as VM argument should do the trick.

Dani
>
> I need to solve this problem but can't figure it out, since the users
> of our application will not have admin rights (FDCC requirement) and
> can only write to their user area, yet other than using @user.home I
> don't know how to make this dymanic.
>
> Any help would be greatly appreciated.
>
> -Ryan
>
>
Re: Need to workaround to using @user.home on Vista for FDCC compliance [message #488598 is a reply to message #488573] Tue, 29 September 2009 11:55 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Daniel Megert wrote:
> Ryan Norris wrote:
>> I'm working on an application that has to adhere to FDCC compliance.
>> We use @user.home in the application exe's .ini file to specify the
>> osgi.instance.area relative to the user. The problem is that this
>> does not always work on Vista. @user.home is replaced by the platform
>> with the Java "user.home" system property and this property is not
>> always set correctly as described in the Java bug:
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519127.
>> Unfortunately this bug has been open for over 2 years with no sign of
>> a fix coming. Is there a way to workaround this issue by specifying a
>> user.home-like value in the exe's .ini file or config file? Should
>> the platform not use the user.home Java system property value on Vista
>> but instead use the lookup described in the registry key that Java
>> accesses to get the user.home value (see Java bug for details)?
> Pass -Duser.home=YOUR_VALUE as VM argument should do the trick.

I don't consider this as a general solution, because that would mean
that the app in advance is aware of the user home directory.

Let me add that we also stumbled across this problem and the current
workaround is a strategy that first tries to evaluate the system
property and if that fails it performs an absolute non-portable
ProcessBuilder construction that basically tries to read a specific
standard registry entry.

- Daniel
Re: Need to workaround to using @user.home on Vista for FDCC compliance [message #489328 is a reply to message #488598] Fri, 02 October 2009 13:14 Go to previous message
Ryan Norris is currently offline Ryan NorrisFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks for the replies. From what I can tell to be FDCC compliant we just need to be able to have data written to the user's directory rather than some install location. The spec doesn't mention multi-user requirements, but really deals with security. We will probably switch to explicitly setting the user.home value (using -Duser.home=) for Vista to get this working, however, it would be nice to support multi-user installs for customers that want it. I really wish Java would fix this bug.
Previous Topic:Plug-in spy
Next Topic:Sudden Abort of Application
Goto Forum:
  


Current Time: Tue Mar 19 02:41:30 GMT 2024

Powered by FUDForum. Page generated in 4.22411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top