You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
411 B
28 lines
411 B
15 years ago
|
#!/usr/bin/env kjscmd
|
||
|
|
||
|
println( "Hello World" );
|
||
|
|
||
|
var d = new DCOPClient();
|
||
|
|
||
|
if ( d.attach())
|
||
|
{
|
||
|
println("Attached...");
|
||
|
if( d.isAttached() )
|
||
|
{
|
||
|
var ref = d.call("kdesktop", "KDesktopIface", "background()");
|
||
|
if( ref )
|
||
|
{
|
||
|
println( "Got ref");
|
||
|
var data = ref.call("isCommon()");
|
||
|
println("Returned a : " + data);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
else
|
||
|
println( "Error!" )
|
||
|
}
|
||
|
else
|
||
|
println("Failed...");
|
||
|
|
||
|
println( "Done" );
|