You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running from a web server ,on Mac OS Racket try to open pref-dir of admin user that installed Racket instead of the one of current-user #786
but when the web application using racket try to use the preference file it fall back to the one of me, mattei, administrator of the host, as seen in the output of httpd log:
user is well _www but this output show mattei in PATH and other place that should not be, this could be causing because for using _www account i'm first logged in mattei and do ssh _www@localhost
i will check all the varriable from web server app , not from console as it is what is important.
Activity
soegaard commentedon Dec 5, 2025
How did you start the Racket program?
I asked ChatGPT to explain the output from
ps xauand it said:This seems odd if the Racket process is invoked by the web server.
soegaard commentedon Dec 5, 2025
FWIW
find-system-patheventually callsrktio_system_pathwhich is defined here:https://github.com/racket/racket/blob/master/racket/src/rktio/rktio_fs.c#L2302
I think the current user is taken from the shell rather than from the user that owns the process.
damien-mattei commentedon Dec 5, 2025
ps is just the command ps of unix
print statistics of processes
about current user taken from shell and it seems the envionment is good:
(myvenv3.10) _www@mac ~ % printenv
LANG=fr_FR.UTF-8
USER=_www
LOGNAME=_www
HOME=/Library/WebServer
PATH=/Users/mattei/myvenv3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/opt/homebrew/bin
SHELL=/bin/zsh
TERM=xterm-256color
mount_authenticator_shm=/pamF48D8F78B233
SSH_CLIENT=::1 50824 22
SSH_CONNECTION=::1 50824 ::1 22
SSH_TTY=/dev/ttys004
TMPDIR=/var/folders/zz/zyxvpxvq6csfxvn_n000008r000026/T/
SHLVL=1
PWD=/Library/WebServer
OLDPWD=/Library/WebServer
VIRTUAL_ENV=/Users/mattei/myvenv3.10
PS1=(myvenv3.10) %n@%m %1~ %#
VIRTUAL_ENV_PROMPT=(myvenv3.10)
_=/usr/bin/printenv
user is well _www but this output show mattei in PATH and other place that should not be, this could be causing because for using _www account i'm first logged in mattei and do ssh _www@localhost
i will check all the varriable from web server app , not from console as it is what is important.