whizard is hosted by Hepforge, IPPP Durham

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#244 closed defect (fixed)

Remove hardcoding of user home directory in O'Mega

Reported by: Christian Speckner Owned by: ohl
Priority: P2 Milestone:
Component: omega Version: 2.0.0rc3
Severity: major Keywords:
Cc:

Description

If I am not completely mistaken, the user home directory is hardwired in config.ml at configure time. On a multiuser installation, this will cause O'Mega to try writing to other peoples' home! This should be changed and determined at runtime, e.g. via Unix.gentenv "HOME".

Change History (4)

comment:1 Changed 14 years ago by Juergen Reuter

Partially overlapping with Ticket #224!

comment:2 Changed 14 years ago by ohl

Priority: P1P2
Status: newassigned

It's probably a good idea to make it conform to the configure option

 --enable-user-cache=directory
                          Store precomputed model tables in this directory
                          and read them to avoid lengthy recomputations.
                          Leading "~" will be replaced at runtime by ${HOME}.
                          [Must be user writable, default=${HOME}/.whizard/var/cache,
                           enabled].

It appears that I forgot to add the "~" magic ...

comment:3 Changed 14 years ago by ohl

Resolution: fixed
Status: assignedclosed

Fixed in r2005.

comment:4 Changed 14 years ago by Juergen Reuter

Milestone: v2.0-rc4

Milestone v2.0-rc4 deleted

Note: See TracTickets for help on using tickets.