diff --git a/src/linkapp.cpp b/src/linkapp.cpp index 33777dd..f8da030 100644 --- a/src/linkapp.cpp +++ b/src/linkapp.cpp @@ -37,6 +37,10 @@ #include #include +#ifdef PLATFORM_DINGUX +#include +#endif + using fastdelegate::MakeDelegate; using namespace std; @@ -451,6 +455,15 @@ void LinkApp::launch(const string &selectedFile, const string &selectedDir) { write(fd, &c, 1); close(fd); } + + fd = open("/dev/tty1", O_RDWR); + if (fd < 0) { + WARNING("Unable to open tty1 handle\n"); + } else { + if (ioctl(fd, VT_ACTIVATE, 1) < 0) + WARNING("Unable to activate tty1\n"); + close(fd); + } } #endif