[TxMt] TM_USERNAME is null on Leopard

Peter Haza peter.haza at gmail.com
Thu Nov 29 14:53:32 UTC 2007


I believe TM_USERNAME has been replaced with TM_FULLNAME to better  
conform with variables in XCode or something. nutil is gone with  
Leopard.

ph

On Nov 29, 2007, at 2:20 PM, John Hunter wrote:

> Since upgrading to OS X 10.5 the TM_USERNAME variable used in  
> bundles has been unset.
>
> The following command is the problem:
>
> TM_USERNAME=`niutil -readprop / /users/\$USER realname`
>
> Seems that the niutil command has been dropped from 10.5 onwards and  
> replaced by the dscl command.
>
> The following gets the current users real name but prepends it with  
> the property key:
>
> dscl . -read /Users/$USER RealName
>
> returns:
> RealName:
> John Hunter
>
> I'm not sure how you get the value without the key.
>
> Has anyone got a solution to this? It affects most of the templates.
>
> Apologies if its been covered before.
>
> Thanks
> --John
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



More information about the textmate mailing list