#11026: Add double clicking of sws files for Mac app
----------------------------------+-----------------------------------------
       Reporter:  iandrus         |         Owner:  iandrus            
           Type:  enhancement     |        Status:  needs_review       
       Priority:  major           |     Milestone:  sage-5.1           
      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):

 > > Well, it's a little tricky.  Double-clicking certainly opens the Sage
 app, and the notebook server opens, but I don't see it opening the file.
 Yes, this is on a version of Sage with the sws-cmdline going, because if I
 open the terminal from within the little dropdown list, I get
 > > {{{
 > > sage: notebook(upload="/Users/.../Untitled.sws")
 > > The notebook files are stored in: sage_notebook.sagenb
 > > Another Sage Notebook server is running, PID 19872.
 > > Opening web browser at
 http://localhost:8000/upload_worksheet?url=file:///Users/.../Untitled.sws
 ...
 > > }}}
 > > and it opens fine in its own thing.  But when I double-click, it just
 opens the worksheet list window, nothing else.

 Did you see this?  Just curious.

 > > When I use the Sage app itself (not the little menubar item) and do
 `File -> Open File ...` then I get the "native" app browser with the
 worksheet I chose as its title, but nothing else (just a clank browser
 window.  It doesn't do anything, and the worksheet is not there when I
 check.
 >
 > Oh you're right.  I wonder if that ever worked.

 Fixed?

 > > On an unrelated note, why does `sage-document-cython.icns` look so
 much bigger than the other icon files?
 >
 > I made it at a different time and didn't follow the same steps I guess.
 I fixed this in the patch as well.

 Hmm, but it still looks bigger.  Probably this isn't a big deal.  I can't
 check what the icons actually look like because I have Xcode as the
 default to open .pyx files and it won't give me the icon even after saying
 Sage.app should open them.

 > > By the way, my menubar item never does become blue any more.  Maybe
 that is part of it.  I mean, the server is clearly working, so I'm not
 sure why not.  Any ideas?
 >
 > Okay, I tried it against sage-5.2.beta0 and you are right (when you use
 the system browser).  The problem is the server detection.  They changed
 the (default) pid file of the notebook server.  I have fixed this and
 tested that it also works with the old pid file, and updated the patch.
 Okay.  What was the change for this?

 ----

 I'm going to try this out again soon, thanks for the update!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11026#comment:21>
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.

Reply via email to