Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 274526
Collapse All | Expand All

(-)kdebase-3.5.7/kicker/menuext/konsole/konsole_mnu.cpp.orig (+7 lines)
Lines 299-310 void KonsoleMenu::newSession(const QStri 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
    }

Return to bug 274526