these two scripts make several konqueror sessions with multiple tabs very easy to be stored/resumed. actually it just stores the url and some sessions might not be resumeable since session life time has exceeded. but for most links it works great. usageto save all currently used konquerors with all the open tabs issue: # konqueror_save note: check the ~/.konqueror.state file if it contains anything to resume them (after you have closed all open konquerors) # konqueror_resume note: population of tabs is slow since we need to wait for konqueror to load and since multiple parallel loads will be slow on most links anyway this should be no problem konqueror resume script% cat konqueror_resume | sed 's/^/ /g' 725 2 pts/6 ~ joachim@Z3 08-10-16 3:50:18 #!/bin/bash
#
# resumes a backup of all stored konqueror tabs
# tabs were stored in ~/.konqueror.state
#
new=1
while read line; do
if [ "$line" = "" ]; then
if [ $new -eq 1 ]; then
konqueror &
pid=`echo $!`
sleep 1
new=0
fi
else
url=$line
if [ $new -eq 0 ]; then
dcop konqueror-$pid konqueror-mainwindow\#1 openURL $url
else
dcop konqueror-$pid konqueror-mainwindow\#1 newTab $url
fi
new=1
fi
done < ~/.konqueror.state
konqueror_save script% cat konqueror_save | sed 's/^/ /g' 727 2 pts/6 ~ joachim@Z3 08-10-16 3:50:43 #!/bin/bash
#
# creates a backup of all open konqueror tabs, which can be autoopened after a crash
# when doing it with manual invocation
#
echo "" > ~/.konqueror.state
for i in `dcop | grep konqueror`; do
echo "" >> ~/.konqueror.state
for y in `dcop $i | grep html-widget`; do
url=`dcop $i $y url`
echo " $url" >> ~/.konqueror.state
done
done
![]() |