[Okular-devel] [Bug 252462] Add command line option to print document

tusko5 at gmail.com tusko5 at gmail.com
Mon Sep 12 09:43:45 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=252462


tusko5 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tusko5 at gmail.com




--- Comment #1 from  <tusko5 gmail com>  2011-09-12 09:43:45 ---
You can do something similar with dcop. I have created the following script:

# okular assume stdin input
TEMP=$(mktemp)
cat >$TEMP
okular $TEMP &
OKULAR=org.kde.okular-$!
until [ $(qdbus | grep $OKULAR) = $OKULAR ]
do
  sleep 1s
done
qdbus $OKULAR /okular/okular__Shell/actions/file_print
com.trolltech.Qt.QAction.trigger
qdbus $OKULAR /okular/okular__Shell/actions/file_quit
com.trolltech.Qt.QAction.trigger
rm $TEMP

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list