|
2022-09-06
| ||
| 09:04 | amend to [55a02f20ec]: fixes test env-9.1 for not windows - USERPROFILE is not set under unix, and w... check-in: 9eaba7f4ed user: sebres tags: core-8-6-branch | |
| 06:47 | • Ticket [55a02f20ec] Failure to set HOME when run via task scheduler or service (... artifact: 3d0b468025 user: jan.nijtmans | |
|
2022-09-05
| ||
| 16:29 | • Closed ticket [55a02f20ec]. artifact: 5b41eb42b8 user: apnadkarni | |
| 15:25 | Merge 8.7. Primarily ticket [55a02f20ec] check-in: 4c33048573 user: apnadkarni tags: trunk, main | |
| 12:18 | Merge 8.6. Primarily ticket [55a02f20ec] check-in: aaac8c1ac3 user: apnadkarni tags: core-8-branch | |
| 11:37 | Ticket [55a02f20ec] - fallback to USERPROFILE when setting HOME env on Windows check-in: 291cf17e4a user: apnadkarni tags: core-8-6-branch | |
|
2022-09-02
| ||
| 13:55 | • Ticket [55a02f20ec] Failure to set HOME when run via task scheduler or service (... artifact: 16713cf32d user: jan.nijtmans | |
|
2022-08-06
| ||
| 06:06 | • New ticket [55a02f20ec]. artifact: 2c26eab512 user: apnadkarni | |
Failure to set HOME when run via task scheduler or service (Windows)
Closed / Fixed55a02f20ec10f1bf1b8b2b23f1a791431842067eCreated 4 years agoUpdated 4 years ago
Descriptionmarkdown2022-08-06 06:06:09
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.
Referenced by4
9eaba7f4edamend to [55a02f20ec]: fixes test env-9.1 for not windows - USERPROFILE is not set under unix, and win constraint isn't effective yet since it'll be supplied to test as argument in global scope (check moved to test now) check-in2022-09-06 09:04:184c33048573Merge 8.7. Primarily ticket [55a02f20ec] check-in2022-09-05 15:25:58aaac8c1ac3Merge 8.6. Primarily ticket [55a02f20ec] check-in2022-09-05 12:18:35291cf17e4aTicket [55a02f20ec] - fallback to USERPROFILE when setting HOME env on Windows check-in2022-09-05 11:37:54
jan.nijtmanswiki2022-09-02 13:55:59
No objection at all
apnadkarni Closed ticket [55a02f20ec].
[History diff]2022-09-05 16:29:57
jan.nijtmanswiki2022-09-06 06:47:37
Fixed [here]. Thanks!
Log in (anonymous is fine) to add a comment.