User Crontab is outside of GUI session
Bug #327190 reported by
Martin Owens
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cron (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When trying to execute programs that require variables from the GUI session. the crontab fails. It can no longer execute tasks which relate to editing gnome gconf or any other session settings.
I believe this is because the crontab is outside of the gnome session. There are two possible fixes, 1) Somehow allow the system cron to access session variables when users are logged in, 2) Create a special cron which runs when users log in.
To post a comment you must log in.
Hi,
It is actually possible for programs run from cron to acquire settings from the GUI; it's just rather arcane and tricky to make it reliable. Making it automatic would be possible, but probably require some additional work.
If you just want something that will work *NOW*, you can find directions here: http:// ubuntuforums. org/archive/ index.php/ t-105250. html - note that this will fail randomly if you have more than one user logged in (or in any case where you're the not the first person to log in).
Thank you for taking the time to make Ubuntu better. Since what you submitted is not really a bug, or a problem, but rather an idea to improve Ubuntu, you are invited to post your idea in Ubuntu Brainstorm at https:/ /brainstorm. ubuntu. com/ where it can be discussed, voted by the community and reviewed by developers. Thanks for taking the time to share your opinion!