#11026: Add double clicking of sws files for Mac app
----------------------------------+-----------------------------------------
Reporter: iandrus | Owner: iandrus
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-5.6
Component: user interface | Resolution:
Keywords: mac app | Work issues:
Report Upstream: N/A | Reviewers: Karl-Dieter Crisman,
Nicholas Kirchner
Authors: Ivan Andrus | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by iandrus):
Replying to [comment:52 nkirchner]:
> Replying to [comment:51 iandrus]:
> > Replying to [comment:46 nkirchner]:
> > > I deleted my ~/.sage folder. This fixed the lingering sage-cleaner
process problem, so that's no longer an issue.
> > >
> > > When trying to open a .sws.zip file with no server running, Sage.app
will start the server twice for some reason. sage.log gives no error
message indicating why it needs to start a second time.
> >
> > Is this reproducible? I just tried it, and didn't see that behavior,
so it may be a timing issue somewhere (which would be nice to find, but
potentially quite hard).
>
> It was reproducible when I had the line
>
> {{{export SAGE_ROOT="/Applications/Sage.app/Contents/Resources/sage"}}}
>
> in my ~/.bashrc. Changing the line to
>
> {{{export SAGE_ROOT="/Applications/Sage.app/Contents/Resources/sage/"}}}
>
> resulted in different behavior: Server opens once and pops up a window
with the error message mentioned previously.
The second is what I saw. However, unless I am mistaken, you should not
be setting `SAGE_ROOT`. You shouldn't need to, and IIRC it can lead to
problems.
> > > Doing the same with a .txt.zip file will import the worksheet, but
not open it--instead the .txt.zip file becomes the top item in the list of
active worksheets (which is acceptable behavior, probably). .sws and .txt
files are both imported and opened.
> >
> > I just checked the notebook code and it doesn't open the worksheet in
a zip file because there can be many of them in the zip file so it doesn't
know which one to open.
> My test case has one .sws file in it.
Yes, but the code is not that clever. :-)
I figured out the `sws.zip` file problem and created a
[https://github.com/sagemath/sagenb/issues/76 pull request] for the
notebook.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11026#comment:53>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.