diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-24 01:18:28 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-24 01:18:28 +0000 |
commit | 894f94545727610df22c4f73911d62d58266f695 (patch) | |
tree | 0f5ca5e709ad20082399ee9abd0c8170826c7463 /scripts/ktshell | |
parent | 71f595e255709082f918cacfb1f4b420ba2fee5a (diff) | |
download | ktorrent-894f94545727610df22c4f73911d62d58266f695.tar.gz ktorrent-894f94545727610df22c4f73911d62d58266f695.zip |
Fixed images
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1106865 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'scripts/ktshell')
-rwxr-xr-x | scripts/ktshell | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/scripts/ktshell b/scripts/ktshell index c3971b9..45979e0 100755 --- a/scripts/ktshell +++ b/scripts/ktshell @@ -341,23 +341,7 @@ init () { break done fi - local IFS=' - ' - sessnms=( `dcop --user $usernm --list-sessions | tail -n +2 | head -n -1` ) - unset IFS - if (( ${#sessnms[*]} == 0 )); then - echo "Found no session." - exit 1 - fi - echo "Found a DCOP session." - sessnm=${sessnms[0]} - if (( ${#sessnms[*]} > 1 )); then - echo "Which session of the user's DCOP server do you wish to connect to?" - select sessnm in ${sessnms[*]}; do - break - done - fi - dcop="dcop --user $usernm --session $sessnm" + dcop="dcop --user $usernm" ktorrents=( `$dcop 2>/dev/null` ) if (( $? != 0 )); then echo "Cannot connect to the DCOP server." |