Bug 246440 - kate cannot print from command line with qdbus
Summary: kate cannot print from command line with qdbus
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-01 18:23 UTC by tnemeth
Modified: 2011-08-19 17:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tnemeth 2010-08-01 18:23:21 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

I'm a regular user of the command line and I like to control my applications
through it. I've looked for a way to open kate's print dialog from the command
line as it was possible with kwrite and dcop in the 3.5.x era.
In the old times I did :
                kwrite "$TITLE" > /dev/null 2>&1 &
                WPID=$!
                sleep 3
                dcop kwrite-$WPID "kwrite-mainwindow#1" minimize
                dcop kwrite-$WPID "PrintInterface#1" printDialog > /dev/null
                dcop kwrite-$WPID MainApplication-Interface quit

Now a quick search found no print method:
$ for part in `qdbus org.kde.kate-19090` ; do qdbus org.kde.kate-19090 $part | grep method ; done | grep -i print


Reproducible: Always

Steps to Reproduce:
Use the given command line with correct PID.

Actual Results:  
no print dialog can be opened
Comment 1 Christian Loose 2011-08-19 17:20:11 UTC
Git commit b375424edb2e73a0abaa5452bd2cb5bede92533b by Christian Loose.
Committed on 16/08/2011 at 22:17.
Pushed by cloose into branch 'master'.

Add print() method to the documents D-Bus interface

Add print() method to the KTextEditor::Document interface and
expose it on the D-Bus session bus.

example:
qdbus org.kde.kate-7762 /Kate/Document/1 print
FEATURE: 246440
FIXED-IN: 4.8.0

M  +4    -0    ktexteditor/document.cpp
M  +1    -0    ktexteditor/documentadaptor_p.h
M  +5    -0    ktexteditor/document.h

http://commits.kde.org/kate/b375424edb2e73a0abaa5452bd2cb5bede92533b