Summary: | dbus: add function to get filename or URL of active document | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Martin Feuersaenger <m> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.7.0 |
Description
Martin Feuersaenger
2005-03-16 17:26:27 UTC
Try: dcop kate KateDocumentManager activeDocument best, Jeroen Maybe I need to specify a bit: I want to use the commandline tool dcop in a shell script and what I want is the string of the URL or filename. 'dcop kate KateDocumentManager activeDocument' gives me: DCOPRef(kate,KateDocument#3) and 'dcop kate KateDocument#3' gives me QCStringList interfaces() QCStringList functions() uint documentNumber() So the only thing I get is the document number (which I allready know). No sign of a function that would return the actual name as a string. Any clues? Martin You could try: dcop kate __KateMainWindow#1 caption But I agree, there doesn't seem to be a proper way to do this. best, Jeroen Thanks, with the right sed command that will work for me. But I keep the wish for a more 'intuitive' access to the filename open. Git commit e06f026555f5b0ef621b194765238e292dd4b418 by Dominik Haumann. Committed on 20/07/2011 at 19:42. Pushed by dhaumann into branch 'master'. add activeDocumentUrl dbus call BUG: 101628 M +12 -2 kate/app/katemainwindowadaptor.cpp M +6 -1 kate/app/katemainwindowadaptor.h http://commits.kde.org/kate/e06f026555f5b0ef621b194765238e292dd4b418 Git commit 0e88337feb0ab5db8710b8d77ebf9d2e208241fd by Dominik Haumann. Committed on 20/07/2011 at 19:42. Pushed by dhaumann into branch 'KDE/4.7'. add activeDocumentUrl dbus call BUG: 101628 M +12 -2 kate/app/katemainwindowadaptor.cpp M +6 -1 kate/app/katemainwindowadaptor.h http://commits.kde.org/kate/0e88337feb0ab5db8710b8d77ebf9d2e208241fd |