Hi, Thanks for the answer. Yes, I want exactly that. I also found wmctrl in the meantime, but the problem is that if from my script I open the document by kde-open, I don't actually know which app will open it (if it's a html document, it will be opened in the default browser, which may be firefox, rekonq, chrome, etc), therefore I can't use wmctrl. Daniel On Friday, April 01, 2011 03:13:30 pm Duncan wrote: > Daniel Barna posted on Fri, 01 Apr 2011 13:03:54 +0200 as excerpted: > > If I use kde-open to open a url, depending on my settings it may open > > that url in a new tab of a running firefox, for example, etc. > > Is it possible to tell kde-open to raise that window and switch to the > > desktop that app is on, whatever application it has launched? > > "kde-open --help-all" in a terminal window gives its options -- not many. > > Not that I claim any particular knowledge of kde-open, but no, based on > the above --help-all output, I don't believe it's possible to tell kde- > open to raise the window and switch to the appropriate desktop if > necessary. That'd be up to the app in question, as well as any specific > window behavior rules that have been configured to cover that app (as > applied by kwin) in terms of focus-stealing-prevention, etc. > > Based on your question it can be assumed that you are likely working on a > scripted solution of some sort. If that's the case, the "wmctrl" package > and binary is likely to be of some help, as it allows scripted desktop and > window actions of various types, including switching to the desktop > containing a window and raising it. As may be expected, after installing > the package, both the wmctrl (1) manpage and wmctrl --help at the command > line offer details on commandline usage and options. > > What it sounds like you may be wanting, therefore, would be a call to kde- > open, likely followed by a call to wmctrl. ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.