Bug 967251

Summary: sagemath: Hardcoded Requires: firefox
Product: [Fedora] Fedora Reporter: Kevin Kofler <kevin>
Component: sagemathAssignee: Paulo Andrade <paulo.cesar.pereira.de.andrade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 18CC: paulo.cesar.pereira.de.andrade, redhat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sagemath-5.9-9.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 02:43:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kevin Kofler 2013-05-26 02:03:58 UTC
Description of problem:
sagemath explicitly requires firefox. Why is that necessary? The web-based notebook should work with any browser, and what if I don't want to use the web-based interface at all (but either Cantor or the sage command line directly)?

Version-Release number of selected component (if applicable):
sagemath-5.9-5.fc18 and older

Comment 1 Paulo Andrade 2013-05-27 12:49:33 UTC
I did not test recently with web browsers other than firefox
and konqueror, but it does not work correctly with knoqueror,
mostly several javascript warnings all over the place.
You can test other browsers by just commenting to use default
or change default in /usr/bin/sage:

export SAGE_BROWSER=firefox

I will try to work on getting it to work correctly with
other browsers, if hard to debug issues arise, usually it
is java plugin related. At first I preferred to make it
have as few issues as possible, so that if an user installs
sagemath, by typing "notebook()" in the command line,
everything should work, instead of needing the user to
debug why things do not work "out of the box".

Comment 2 Rex Dieter 2013-09-10 11:25:24 UTC
*** Bug 971430 has been marked as a duplicate of this bug. ***

Comment 3 Rex Dieter 2013-09-10 11:41:55 UTC
IMO, leave it to the user to set a sane browser, if they choose badly, it's on them.

The easiest fix here would be to just do
export SAGE_BROWSER=xdg-open

(and and a dependency on xdg-utils, if you don't already have one)

Comment 4 Paulo Andrade 2013-09-10 15:23:27 UTC
  I know it used to work with firefox and chromium-browser.
Other browers (opera I never saw working with icedtea-web,
but it was long ago I last tested), and with konqueror it
keeps pop'ing up some warnig messages from jsMath.
  I left it in the /usr/bin/sage script so that it is easy
to spot, and this way I would trade receiving a few bug
reports of hardcoded firefox usage vs a lot of bug reports
about not working properly on other browsers.

Comment 5 Kevin Kofler 2013-09-13 22:38:23 UTC
But the thing is, Firefox is a ridiculous dependency if I want to use SAGE inside Cantor or on the command line. SAGE is more than just the web app.

Comment 6 Paulo Andrade 2013-09-14 16:46:55 UTC
Curiously, only yesterday I tested again sage with
cantor and noticed the problem. I think it is a good
enough reason to tell people to set SAGE_BROWSER
if it does not work good enough with konqueror
(did not last time I tested).

Comment 7 Kevin Kofler 2013-09-14 17:29:33 UTC
Well, of course, if you run notebook() in Cantor, it will behave no differently than if you do it in a SAGE running in a terminal. But that's not really how Cantor is intended to be used. :-) (Cantor has its own notebooks, it's not supposed to be a frontend to fire up the web notebook.)

Comment 8 Fedora Update System 2013-09-15 01:14:52 UTC
sagemath-5.10-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/sagemath-5.10-4.fc20

Comment 9 Fedora Update System 2013-09-15 01:15:47 UTC
sagemath-5.9-8.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/sagemath-5.9-8.fc19

Comment 10 Fedora Update System 2013-09-15 01:16:50 UTC
sagemath-5.9-8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/sagemath-5.9-8.fc18

Comment 11 Fedora Update System 2013-09-15 17:36:20 UTC
Package sagemath-5.10-4.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sagemath-5.10-4.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-16782/sagemath-5.10-4.fc20
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-09-17 17:56:09 UTC
sagemath-5.9-9.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/sagemath-5.9-9.fc18

Comment 13 Fedora Update System 2013-09-17 17:57:38 UTC
sagemath-5.9-9.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/sagemath-5.9-9.fc19

Comment 14 Fedora Update System 2013-09-19 02:43:00 UTC
sagemath-5.10-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2013-09-27 00:39:12 UTC
sagemath-5.9-9.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2013-09-27 00:41:41 UTC
sagemath-5.9-9.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.