ShareOpenSolaris


Home » OpenSolaris.com Forums » Desktop

Thread: GNOME/bash script invoked when login


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Jun 23, 2008 2:35 AM Last Post By: chriskelly
hir_noz

Posts: 3
Registered: 5/13/08
GNOME/bash script invoked when login
Posted: May 13, 2008 12:59 AM
 
  Click to reply to this thread Reply
I'd like to change Ctrl key and Caps key by xmodmap because these keys have inverted positions between Japanese 106 keyboards and UNIX keyboards.

On SXDE 1/08 I login it a user whose login shell was /bin/csh. I put a .xmodmaprc file (see man xmodmap for example) on the home directory of this user. xmodmap was called from .login file.

I checked some documents and I can do it on bash by setting .bash_profile because default user shell of OpenSolaris OS 2008.05 is bash. I tried a login but .bash_profile appears not invoked. (I put "echo aaa > /var/tmp/aaa" on it but there's no "aaa" file on /var/tmp.

What shall I do about it?
sartek

Posts: 25
Registered: 5/6/08
Re: GNOME/bash script invoked when login
Posted: May 13, 2008 5:10 AM   in response to: hir_noz in response to: hir_noz
 
  Click to reply to this thread Reply
try .bashrc
chriskelly

Posts: 6
Registered: 5/10/08
Re: GNOME/bash script invoked when login
Posted: Jun 23, 2008 2:35 AM   in response to: hir_noz in response to: hir_noz
 
  Click to reply to this thread Reply
Alternatively, try the System -> Preferences -> Sessions tool. This allows you to run arbitrary commands when you login. I use it in an almost identical way to what you want. As the command, I have "xmodmap /export/home/chris/.xmodmap". I'm using a MBP and this set's my right command key to right click.

-Chrisk

Point your RSS reader here for a feed of the latest messages in all forums