Merge lp:~widelands-dev/widelands-website/add_DISPLAY_to_update_help into lp:widelands-website
Proposed by
kaputtnik
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | kaputtnik | ||||
Proposed branch: | lp:~widelands-dev/widelands-website/add_DISPLAY_to_update_help | ||||
Merge into: | lp:widelands-website | ||||
Diff against target: |
29 lines (+12/-0) 1 file modified
wlhelp/management/commands/update_help.py (+12/-0) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/add_DISPLAY_to_update_help | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Widelands Developers | Pending | ||
Review via email: mp+295756@code.launchpad.net |
Description of the change
Use DISPLAY=:1 for update_help.py because wl_map_object_info needs access to the x-server on DISPLAY:1. So
./manage.py update_help
runs without setting the environment variable before by hand.
To post a comment you must log in.
I suggest crashing if DISPLAY is unset and instead make sure it is set correctly in the cron script that will trigger this run. The proposed change is fine as well, but if we ever need to shell out to another graphical process again, we have to repeat the hack. The cron script is where all commands are triggered, so it seems a better place for it, IMHO.
Right now all django commands are run through /etc/cron. daily/django_ regular_ commands.