[PyKDE] DCOP From Cron
Jim Bublitz
jbublitz at nwinternet.com
Tue Jun 20 18:14:22 BST 2006
On Tuesday 20 June 2006 08:49, Richard Heck wrote:
> İsmail Dönmez wrote:
> > Salı 20 Haziran 2006 17:19 tarihinde, Richard Heck şunları yazmıştı:
> >> I'm writing a simple application to rotate wallpaper every so often, and
> >> I want to run it as a cron job. The basic structure is pretty simple,
> >> and it works fine if I run it in a shell under KDE. But when I run it as
> >> a cron job, it does not connect to the DCOP server. Is there some way to
> >> tell the script which DCOP server to connect to?
> >
> > Maybe try dcop --user $username .
>
> Sorry, that wasn't clear. The program I'm writing is in Python.
Yes, but it should be running under cron as the same user you're testing it as
(the user who owns the display and is running KDE).
Your application should be based on KApplication, and can use
KApplication.dcopClient() to connect to the DCOP server.
Jim
More information about the PyQt
mailing list