Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > DCOP commands ?

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-09-2005   #1 (permalink)
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
DCOP commands ?

I was just reading the "KDE - Help Center" for konsole.It says that
you can invoke konsole with the option --script file in order to
Quote:
Allow the use of extended DCOP commands to paste text into sessions.
I have no idea what these DCOP commands are.Can someone give me
some pointers ?
Santa's little helper is offline  



Reply With Quote
Old 07-09-2005   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-09-2005   #3 (permalink)
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
Thanks.I had a quick look.I'm still not clear what it's for.Can someone
give me a practical example where one would use this sort of
meachanism ? Also it doesn't seem to say what the file following
the --script option ought to contain.It only mentions C++ code.
Santa's little helper is offline   Reply With Quote
Old 07-09-2005   #4 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
I'm not familiar with using it for scripts, but as I recall from a tutorial I read on it awhile ago, dealing with say konqueror, you could do:
Code:
dcop konqueror default openBrowserWindow www.foo.com 
, and that would open www.foo.com in konqueror. To list what you can do with a specific DCOP-enabled application, just do:
Code:
dcop foo default
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-09-2005   #5 (permalink)
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
I just tried
Code:
dcop konsole default
and got
Code:
object 'default' in application 'konsole' not accessible
Specifying the full pathname for konsole didn't make any real
difference.
Santa's little helper is offline   Reply With Quote
Old 07-09-2005   #6 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Hmmm...guess my memory doesn't serve me that well...I guess it's:
Code:
dcop foo
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-09-2005   #7 (permalink)
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
dcop konsole gives No such application: 'konsole'
Needless to say I have konsole.
Santa's little helper is offline   Reply With Quote
Old 07-09-2005   #8 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Code:
dcop
will list all dcop-able apps.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-09-2005   #9 (permalink)
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
That worked.Thanks.

It seems that konsole should have been followed by its process id.
But I only get a list of C++ functions so it still doesn't tell me what I
can do with it from the command line or just running the application.
Assuming that I can do something.
Santa's little helper is offline   Reply With Quote
Old 07-10-2005   #10 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
I guess then:
Code:
dcop konsole-XXXX default
would give you the things you can do. And then just call those functions with whatever arguments it takes on the command line:
Code:
dcop konsole-XXXX default foo(bar, baz)
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:25 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1