Link Here
|
299 |
{ |
299 |
{ |
300 |
QString protocol = url.protocol(); |
300 |
QString protocol = url.protocol(); |
301 |
QString host = url.host(); |
301 |
QString host = url.host(); |
|
|
302 |
bool isSSH = (protocol == "ssh"); |
302 |
args << "-T" << title; |
303 |
args << "-T" << title; |
303 |
args << "-e" << protocol.latin1(); /* argv[0] == command to run. */ |
304 |
args << "-e" << protocol.latin1(); /* argv[0] == command to run. */ |
|
|
305 |
if (url.port() && isSSH) { |
306 |
args << "-p" << QCString().setNum(url.port()); |
307 |
} |
304 |
if (url.hasUser()) { |
308 |
if (url.hasUser()) { |
305 |
args << "-l" << url.user().latin1(); |
309 |
args << "-l" << url.user().latin1(); |
306 |
} |
310 |
} |
307 |
args << host.latin1(); |
311 |
args << host.latin1(); |
|
|
312 |
if (url.port() && !isSSH) { |
313 |
args << QCString().setNum(url.port()); |
314 |
} |
308 |
KApplication::kdeinitExec("konsole", args); |
315 |
KApplication::kdeinitExec("konsole", args); |
309 |
return; |
316 |
return; |
310 |
} |
317 |
} |