Michael Klinosky wrote: > OK. Well, I changed it - still not working. Perhaps an error message will > help determine the problem: > > [mpk@d500 .BOINC]$ which firefox > /usr/local/bin/firefox > [mpk@d500 .BOINC]$ export BROWSER="/usr/local/bin/firefox %u" > (test function in app) > [mpk@d500 .BOINC]$ execvp(Firefox, http://setiathome.berkeley.edu/) failed > with error 2! I think what Justin said is likely. What's important to know is that when you export the updated BROWSER variable, it can't influence any process that came before it. >>> Furthermore, into what file do I put it? (.bash_profile?) >> That should work. > > I asked because of another issue I'm working on - where to put a command to > run an app only once per session. I put that command into .bash_profile, > and then I tried .bashrc. Both times, it would try to run it each time I > opened a terminal or switched to the VT. > > Someone suggested .xsession. > > Granted, re-running this isn't a problem - but it just isn't sleek. Or, > it's non-geeky. :) Ahh, I see. I don't know how geeky this is, but it ought to work (which counts for something, right?). If you use Gnome, bring up the Sessions preference (in FC6 it's at System -> Preferences -> Sessions; in F7, it's at System -> Preferences -> Personal -> Sessions). On the Startup tab, you can add the app that you want started. There are similar tools for KDE, though I don't know them well. Ask and someone here can surely tell you. You could use ~/.xsession instead of the Sessions tool if you wanted.. To do that you'd need to create that file (and make it executable [chmod +x ~/.xsession]). Then, to run your app and start up a gnome session, you could make the contents something like: # look for friendly aliens from a nicer part of the universe /path/to/boinc & # start gnome exec /usr/bin/gnome-session -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Do you think there's a God?" "Well, SOMEbody's out to get me!" -- Calvin and Hobbes
Attachment:
pgpQxXi6F24ru.pgp
Description: PGP signature