Artifacts Associated With Ticket 55a02f20ec10f1bf
Ticket change [2c26eab512] (rid 202987) by apnadkarni on 2022-08-06 06:06:09:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
Tilde expansion in file commands use `env(HOME)`. At startup this is initialized from the `HOME` env variable or via `HOMEDRIVE` and `HOMEPATH` if `HOME` is not set. However, under some circumstances none of these are set on Windows, examples being when the program is started from the task scheduler or as a service and the corresponding user account has not logged in. This causes tilde expansion to fail. The proposed fix is to fallback to initializing `HOME` with the `USERPROFILE` env var if the current method fails. This seems to exist in all cases. Classifying as bug so no TIP required :-) Please note any objections here.
- foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "08. Environment Variables"
- title initialized to:
Failure to set HOME when run via task scheduler or service (Windows)
- type initialized to: "Bug"
Ticket change [16713cf32d] (rid 203647) by jan.nijtmans on 2022-09-02 13:55:59:
- assignee changed to: "apnadkarni"
- icomment: "No objection at all"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [5b41eb42b8] (rid 203719) by apnadkarni on 2022-09-05 16:29:57:
- closedate changed to: "2459828.18747272"
- closer changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
- status changed to: "Closed"
Ticket change [3d0b468025] (rid 203735) by jan.nijtmans on 2022-09-06 06:47:37:
- closedate changed to: "2459828.78307625"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed [291cf17e4aea05fc|here]. Thanks!"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"