| Summary: | kde-config-cron config module does not allow DISPLAY=:0.0 | ||
|---|---|---|---|
| Product: | [Applications] kcron | Reporter: | illumilore <illumilore> |
| Component: | general | Assignee: | Gary Meyer <gary> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cfeck, nobange |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Unlisted Binaries | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
illumilore
2012-01-26 21:55:20 UTC
See also bug 237593 comment #2. I tried setting the environment with the variable DISPLAY and a value of 0.0 , but it doesn't seem to take effect there, so is that bugged too, or is there some trick to setting that particular environment variable? And would it be possible to change it so that only a warning is given if it doesn't like the command input, instead of also disabling the okay button? It seems like it is unnecessarily crippled considering that crontab allows me to do this, while this frontend does not. > value of 0.0 I hope you tried :0.0 If you added DISPLAY to the variables, it should be written to your crontab. Please use "crontab -l" to verify this. > considering that crontab allows me to do this To do what? >To do what?
It allows environment variables in the command line itself, so you can have individual environments for each command. I do not see why kde-config-cron should have reduced functionality concerning this. Maybe make the warning that it gives when it does not like the input command line just a warning and not actually prevent it from being applied?
I am very sure the original (UNIX) version of "cron" does not allow prepending variable settings to commands, it might be possible this feature has been added in other versions of cron, such as anacron. Which version do you use? Just the normal version 3 cron that comes with ubuntu with the crontab that comes with it. I can confirm this in Opensuse 12.1, KDE 4.9. No way to add or modify task, when 'export DISPLAY=:0' is at the beginning. These tasks were added in console cron and work without problems. So to summarize, the correct way to start X applications from cron is to have a cron command like:
export DISPLAY=display && mycommand
or
env DISPLAY=display mycommand
but not
DISPLAY=<display> mycommand
(as is supported by bash)
Correct?
Yes, kcron still seems to not allow DISPLAY=<display> because it doesn't see it as a command. Maybe it should only warn the user instead of outright disallowing it? |