ERD Posted June 2, 2005 Report Share Posted June 2, 2005 (edited) either this is a bug in mandiva, or i really havent gotten the hang of linux yet... ibe been told that if i want something to get done at startup (globaly - for all users), i should put it in the file /etc/rc.local, this is "confirmed" by the file itself, cause if i open it it sais: # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff here if you dont # want to do the full Sys V style init stuff. the deal is this: ibe tried experimenting with this file adding this to it: touch /home/erd/madeby.rclocal and it works as expected, after i reboot the system, i got a file madeby.rclocal in my home dir. however... if i add this instead: set SOMEVAR=/usr/local/someapp/someapp export SOMEVAR or... export SOMEVAR=/usr/local/someapp/someapp after i reboot the system, if i type echo $SOMEVAR i get absolutely NOTHING! this brings me back to a question ibe been asking for a while, how in Gods name, can i globally define an eviroment variable??? BTW: the "default" browser defining system doesnt work if i installed firefox myself, even after setting the default browser to point to it in gnome control panel. (for example, the menu item to run swat does not work at all), so i would really like to completely get rid of this www-browser stuff and simply point BROWSER to firefox ALLWAYS, regardless of anything else. but i also cant get this done. :( thanks! Edited June 2, 2005 by ERD Quote Link to comment Share on other sites More sharing options...
bvc Posted June 2, 2005 Report Share Posted June 2, 2005 (edited) global environment variables can go in /etc/bashrc or /etc/profile.d use gconf-editor to define the default browser Edited June 2, 2005 by bvc Quote Link to comment Share on other sites More sharing options...
ERD Posted June 2, 2005 Author Report Share Posted June 2, 2005 Thanks for your answer global environment variables can go in /etc/bashrc or /etc/profile.d /etc/bashrc sais: #System wide functions and aliases #Environment stuff goes in /etc/profile so i went to etc/profile and added my stuff at the end. Works fine. (solved) Thanks a Lot! :) use gconf-editor to define the default browser <{POST_SNAPBACK}> yes, but, what happens when i use blackbox or windowmaker or whatever? is there a way to tell mandrake to ALLWAYS, no matter what desktop env im using, *ALLWAYS* use firefox as the default browser? or do i have to configure each desktop env. to use firefox? Once again, Thank you for your answer (and your patience for this newby :) ) Quote Link to comment Share on other sites More sharing options...
ERD Posted June 2, 2005 Author Report Share Posted June 2, 2005 (edited) yes, but, what happens when i use blackbox or windowmaker or whatever?is there a way to tell mandrake to ALLWAYS, no matter what desktop env im using, *ALLWAYS* use firefox as the default browser? or do i have to configure each desktop env. to use firefox? ibe just answered my own question. ibe added this to /etc/profile: BROWSER = /usr/local/firefox/firefox export BROWSER now typing echo $BROWSER gives me what i expect: /usr/local/firefox/firefox thanks again for your help Edited June 2, 2005 by ERD Quote Link to comment Share on other sites More sharing options...
bvc Posted June 3, 2005 Report Share Posted June 3, 2005 a little digging goes a long way, eh? glad you figured it out! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.