I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users need to override user.name with their full name and the usual method (adding -Duser.name=… to eclipse.ini) is not suitable since the override must be per-user. I’ve tried setting user.name in config.ini (inside each user’s configuration directory):
user.name=Luca Tettamanti
but it does work, eclipse still retains the login name. The strange thing is that:
user.foobar=Luca Tettamanti
is correctly picked up. Is it possible to somehow override user.name in this configuration?
This has been reported before indeed.
Why would you not use use a custom eclipse launcher (a script
.cmd), which would modify the eclipse.ini, and then call eclipse.exe ?That script could retrieve the full name with a comand like:
That way, in Windows, your custom launcher would run eclipse with:
using the shared eclipse.ini, but specifying the
user.namevalue.In Linux, to relay the contents of the shell variable
USERto Eclipse, you need to do this: