Re: $BROWSER



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: pgpNjleCXqqhv.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: Session State across ASP.NET apps
    ... we are already using a central state server for all web ... so I knew about the encrypt decrypt thing for that. ... I'm just talking about sharing the session between apps. ... You can then grab the vars in the other app. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET Application - Defined???
    ... > gateway to the app). ... > business object into session state. ... > - Then Main.aspx did the bus obj user validation and filled out the rest ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Safest way to pass data between web apps?
    ... Or simply a generated/custom session ID. ... form which you post to the receiving application, ... >> data across to the other app and the "receiving" app can extract only ... >> - Paul Glavich ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Session State across ASP.NET apps
    ... For session variables, I have yet to have found a solution. ... You can then grab the vars in the other app. ... allow sharing of session vars, ... the web service would recognize the session ID, it could pass back the info. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Session timeout problem...
    ... During the login, in code behind I have dynamically created a public shared ... When the user clicks logout menu option from my app I also have code behind ... session will time out. ... ran some test code in the application start sub in global.ascx to log each ...
    (microsoft.public.dotnet.general)