#11026: Add double clicking of sws files for Mac app
----------------------------------+-----------------------------------------
Reporter: iandrus | Owner: iandrus
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.3
Component: user interface | Resolution:
Keywords: mac app | Work issues:
Report Upstream: N/A | Reviewers: Karl-Dieter Crisman
Authors: Ivan Andrus | Merged in:
Dependencies: #8473, #13121 | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by kcrisman):
> > What if you quite Sage.app and start it again. Does it recognize that
a server is running? Is one running? If quitting stops both servers,
then try holding Option when you quit to not kill the server and see if
Sage.app recognizes the server then.
If I click before starting Sage.app (this is the case we are talking about
here), I get the two servers. As far as I can tell, maybe even neither
one is stopped when I quit! But `ps` just gives one... anyway, when I
then start Sage.app normally, I get the gray icon, but I get a new server
starting on port 8001.
I think that what happens is that there shouldn't be ''any'' processes
listed for me under `ps` because they are not owned by me in the Terminal.
But someone one is. The 8001 process doesn't show up in `ps`.
{{{
493 ?? Ss 0:00.05 /bin/bash /Users/crisman/Desktop/Sage-
click.app/Contents/Resources/start-sage.sh /User
558 ?? S 0:00.38 python
/Users/crisman/Desktop/sage-5.2.beta0/local/bin/sage-cleaner
560 ?? S 0:00.02 bash ./sage --notebook
562 ?? S 0:00.04 bash
/Users/crisman/Desktop/sage-5.2.beta0/spkg/bin/sage --notebook
566 ?? S 0:06.36 python
/Users/crisman/Desktop/sage-5.2.beta0/local/bin/sage-notebook
582 ?? S 0:11.62 python
/Users/crisman/Desktop/sage-5.2.beta0/local/bin/twistd
--pidfile=sage_notebook.
644 ?? S 0:00.61 /Users/crisman/Desktop/Sage-
click.app/Contents/MacOS/Sage -psn_0_5898241
645 ?? Ss 0:00.05 /bin/bash /Users/crisman/Desktop/Sage-
click.app/Contents/Resources/start-sage.sh /User
675 ?? S 0:00.02 bash ./sage --notebook
677 ?? S 0:00.04 bash
/Users/crisman/Desktop/sage-5.2.beta0/spkg/bin/sage --notebook
681 ?? S 0:06.40 python
/Users/crisman/Desktop/sage-5.2.beta0/local/bin/sage-notebook
682 ?? S 0:08.83 python
/Users/crisman/Desktop/sage-5.2.beta0/local/bin/twistd
--pidfile=sage_notebook.
700 ?? S 0:02.18
/Applications/Utilities/Console.app/Contents/MacOS/Console -psn_0_6160385
488 p1 Ss 0:00.02 login -pf crisman
489 p1 S 0:00.04 -bash
714 p1 R+ 0:00.01 ps -A
632 p2 Ss+ 0:00.20
/Users/crisman/Desktop/sage-5.2.beta0/local/bin/python
}}}
As you can see, there are at least two full Sage servers going on now.
> >
> > What happens (i.e. does it work okay) if you start the server yourself
from the command line, and then double click a sws file (without Sage.app
being open)?
This seems to work okay. There still is the extra worksheet list window
opening late, but that is acceptable - no other server is started.
> > I'd like to get this fixed since it's supposed to work, but I guess it
depends on how long we have to wait for me to fix it. It's not going into
5.2 though so we have some time. I can't reproduce the problem so it
might be a timing issue. I'll try to look at the code and see if I can
figure it out.
Again, given that Tiger is a much older platform, good instructions for
how to use it properly might be good enough. It ''does'' work, just not
optimally. May have to include instructions on how to use Activity
Monitor or something to close processes... I'd really like to see this on
Leopard, since that is a more likely platform to still be in use for a
situation that requires double-clicks... though who knows? I think there
are more people using old Macs than we think out there.
----
Is there anybody out there who could try this on Lion?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11026#comment:40>
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.