Skip to content

Allow running Sage.app by someone other than it was installed by #11755

@gvol

Description

@gvol

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 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).

Depends on #31270

CC: @kcrisman @dimpase

Component: relocation

Keywords: mac app SAGE_ROOT

Issue created by migration from https://trac.sagemath.org/ticket/11755

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions