how to start a kde application via shell script

Antonio Augusto (Mancha) mkhaos7 at gmail.com
Fri May 22 00:29:11 UTC 2009


One of the reasons that it doesn't work from cron is that the cron
process doesn't have an X session associated with it.
You can try puting the following before calling the kde application:
export DISPLAY=0:0

See if this make a difference

On Thu, May 21, 2009 at 20:55, Sascha G├╝thling <guethling at googlemail.com> wrote:
> Hi List,
>
> I'm trying to start a kde application with a shell script. The shell
> script is called by cron. But I always get an error that the
> application is a "KUniqueApplication". What am I doing wrong?
>
> script:
>
> #!/bin/sh
> /usr/bin/kmix #(<just an example, but it doesn't work like anything
> else I tried)
>
> That's it. When I call the script in a Konsole window it works (since
> I'm in KDE) but when it's called by cron it doesn't.
>
> All ideas are appreciated.
>
> Thanks
> Sascha
>
> --
> kubuntu-users mailing list
> kubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
>




More information about the kubuntu-users mailing list