running apt-get by using Qt (QProcess)
Unsolved
General and Desktop
-
wrote on 4 Aug 2016, 16:43 last edited by aghict 8 Apr 2016, 16:47
Hello
I want to install and run some shell script by using Qt and make a Ubuntu Desktop Application.
now I use:QProcess process; process.startDetached("bash /home/root_enable"); process.waitForFinished(-1);
But I don't see terminal to enter Y/n and other command.
How can I fix this problem?my root_enable is:
sudo apt-get install vim
-
wrote on 4 Aug 2016, 18:17 last edited by
@aghict said:
But I don't see terminal
Hi! That's because bash isn't a terminal emulator but a command line interpreter. A common terminal emulator on desktop Linux is for example KDE's Konsole.
-
wrote on 5 Aug 2016, 05:29 last edited by
How can I fix this problem?
1/3