On Wed, 2009-06-10 at 20:55 +0100, jack craig wrote:
> Hi moblin folks,
> 
> I wonder if you might provide me a quick trick.
> 
> i am loading my beta 2 image from a usb thumb drive for each test.
> 
> after boot, i execute a script as root that makes an update to the 
> /home/moblin/.bash_profile
> to update the PATH variable. (i want to as /sbin so i can see lsusb)
> 
> however, when i switch back to he desktop, open the terminal app, the 
> .bash_profile update is not yet
> executed. I am guessing this is because the moblin user has already 
> scanned its .bash_profile during boot
> and is not looking at it again.

It's because ~/.bash_profile is only executed in login shells. Using
~/.bashrc will work as it will be sourced at the start of any
interactive shell.

-- 
Damien

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to