[vox-tech] conditional .gtkrc-2.0

Dave Margolis vox-tech@lists.lugod.org
Thu, 29 Apr 2004 21:07:19 -0700


Jeff Newmiller wrote:

>On Thu, 29 Apr 2004, Mark K. Kim wrote:
>
>  
>
>>Create two different files, .gtkrc-2.0-laptop and .gtkrc-2.0-desktop, and
>>at login, using a script, determine which computer you're connecting from
>>and make a symlink to .gtkrc-2.0 from the appropriate file!  It's like
>>magic...
>>    
>>
>
>Better not be logged into your multiuser system from two locations at once
>:)
>

agreed, the symlink idea will work, but it breaks if i'm logged in 
locally and remotely at the same time.

this is sort of an answering my own question - i found an environment 
variable that does the trick:

function mygaim() {

GTK2_RC_FILES=~/.mygtkrc-2.0
/usr/local/bin/gaim

}