SOLVED Re: how to start a kde application via shell script
Sascha Güthling
guethling at googlemail.com
Fri May 22 14:53:32 UTC 2009
On Fri, May 22, 2009 at 10:33 AM, Antonio Augusto (Mancha)
<mkhaos7 at gmail.com> wrote:
> On Fri, May 22, 2009 at 11:21, Sascha Güthling <guethling at googlemail.com> wrote:
>> On Fri, May 22, 2009 at 9:18 AM, Antonio Augusto (Mancha)
>> <mkhaos7 at gmail.com> 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.
>
Trying to run xcalc gives me the same error: bad variable name.
More information about the kubuntu-users
mailing list