From 6cbf7b19d7bb3fcd2471dbaa531a7b2ae05f0fcc Mon Sep 17 00:00:00 2001 From: dwmw2 Date: Fri, 20 Sep 2002 12:59:59 +0000 Subject: Works now --- (limited to 'noncore/settings/sshkeys/main.cpp') diff --git a/noncore/settings/sshkeys/main.cpp b/noncore/settings/sshkeys/main.cpp index 37be8bf..a7b1d56 100644 --- a/noncore/settings/sshkeys/main.cpp +++ b/noncore/settings/sshkeys/main.cpp @@ -1,14 +1,30 @@ #include #include "sshkeys.h" +#include +#include +#include +#include +#include +#include + int main(int argc, char *argv[]) { - QPEApplication a(argc, argv); - SSHKeysApp app; + QPEApplication a(argc, argv); + SSHKeysApp app; + int fd; + + /* If we had a controlling TTY, detach from it. + This is to ensure the SSH uses ssh-askpass */ + fd = open("/dev/tty", O_RDONLY); + if (fd != -1) { + ioctl(fd, TIOCNOTTY, NULL); + close(fd); + } - a.showMainWidget(&app); + a.showMainWidget(&app); - return a.exec(); + return a.exec(); } -- cgit v0.9.0.2