Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Source code |
|
1 2 3 4 5 6 7 8 9 10 |
#!/bin/sh konsole=$(dcopstart konsole-script) echo "Started konsole $konsole..." session=$(dcop $konsole konsole newSession) echo "Created session $session..." dcop $konsole $session renameSession Music echo "renamed $session to Music..." dcop $konsole $session sendSession "cd /dang/Music " |
Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/bash PIDS=`pidof konsole` kstart --maximize konsole --script ARGS="" for pid in $PIDS; do ARGS="${ARGS} -o ${pid}" done PID=`pidof ${ARGS} konsole` sleep 2 for nr in 2 3 4; do dcop konsole-${PID} konsole newSession done dcop konsole-${PID} session-1 renameSession kdelibs #Some more sessions renames dcop konsole-${PID} konsole sendAllSessions "newgrp kde" dcop konsole-${PID} konsole sendAllSessions "umask 0002" |
This post has been edited 1 times, last edit by "stfs" (Apr 17th 2007, 3:19pm)
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools