-
-
Notifications
You must be signed in to change notification settings - Fork 674
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:
jdemeyer said:
I also noticed that
data/extcode/sage/ext/mac-app/start-sage.sh
has its ownSAGE_ROOT
-detecting code but it probably shouldn't and should usesage-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).
Depends on #31270
Component: relocation
Keywords: mac app SAGE_ROOT
Issue created by migration from https://trac.sagemath.org/ticket/11755