SOLVED Re: how to start a kde application via shell script

Antonio Augusto (Mancha) mkhaos7 at
Fri May 22 15:33:52 BST 2009

On Fri, May 22, 2009 at 11:21, Sascha Güthling <guethling at> wrote:
> On Fri, May 22, 2009 at 9:18 AM, Antonio Augusto (Mancha)
> <mkhaos7 at> wrote:
>> Sascha, coud you try the following in your script:
>> #!/bin/sh
>> DISPLAY=:0.0 /usr/bin/kate
>> Also, you might night to run "xhost +" on your KDE session before
>> running the above script, so the cron process can access it.
>> Cheers
> I tried it, it doesn't work neither with cron nor in a Konsole window.
> In the Konsole window I get this error: export: 2: /usr/bin/kate: bad
> variable name.
> This is with or without running "xhost +".

If you are getting  "bad variable name" than probably the error reside
somewhere else. If the problem was related to display output you would
get an "Can't connect to X server" kind of error.
Try running xcalc with the same syntax I gave you to see what it gives.

More information about the kubuntu-users mailing list