how to start a kde application via shell script

Bruce Marshall bmarsh at bmarsh.com
Fri May 22 00:59:30 UTC 2009


On Thursday 21 May 2009, Antonio Augusto (Mancha) wrote:
> 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

I recently got a similar command to work by using the display statement right 
in the cron line:

*/10 * * * * DISPLAY=:0.0 /usr/local/bin/keepxfd2

The above runs a script I wrote.





More information about the kubuntu-users mailing list