#!/bin/bash

if [[ -z "$1" || -z "$2" ]]; then
	echo "usage: konqui.sh url printer"
	exit
fi

export PRINTER="$2"
konqueror "$1" &
sleep 8
pid=$!

ref=$(dcop konqueror-$pid konqueror-mainwindow#1 currentView)
ref=$(dcop "$ref" part)
dcop "$ref" print true


