#11755: Allow running Sage.app by someone other than it was installed by
--------------------------+-------------------------------------------------
   Reporter:  iandrus     |          Owner:  iandrus          
       Type:  defect      |         Status:  new              
   Priority:  major       |      Milestone:  sage-4.7.2       
  Component:  relocation  |       Keywords:  mac app SAGE_ROOT
Work_issues:              |       Upstream:  N/A              
   Reviewer:              |         Author:                   
     Merged:              |   Dependencies:                   
--------------------------+-------------------------------------------------
Changes (by jdemeyer):

  * keywords:  mac app => mac app SAGE_ROOT
  * component:  user interface => relocation


Old description:

> Since Sage.app checks if it moved every time upon startup, any user who
> runs the application needs to be able to write to `local/lib/sage-
> current-location.txt`.  This files seems to default to 0644 permissions.
>
> We can either change the Sage.app code so that it doesn't need to check
> every time or make the file world writable.

New description:

 Since Sage.app checks if it moved every time upon startup, any user who
 runs the application needs to be able to write to `local/lib/sage-current-
 location.txt`.  This files seems to default to 0644 permissions.

 We can either change the Sage.app code so that it doesn't need to check
 every time or make the file world writable.

 Relevant comments from #5852:[[BR]]
 jdemeyer said:
 > I also noticed that `data/extcode/sage/ext/mac-app/start-sage.sh` has
 its own `SAGE_ROOT`-detecting code but it probably shouldn't and should
 use `sage-env` instead.

 leif said:
 > It seems the MacOS X app wants just the opposite, i.e. to '''not'''
 resolve symbolic links, since the absolute, canonicalized path may
 frequently change.

 > Therefore it always creates (on start-up) the same, "constant" symbolic
 link from `/tmp/sage-mac-app` to the current, volatile `$SAGE_ROOT`, which
 can only work if the application is also actually ''always'' built in (a
 real directory) `/tmp/sage-mac-app/` (such that no change of hardcoded
 paths is necessary).

--

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