Hi, I posted this as an issue in qterminal, but since I have no response I will reply it here. currently when you call qterminal to execute a command (qterminal -e) it close and you cannot see the output of the command. Is there some way to leave it open?
make some script to make it work ?
and in that script would be like ‘read’ when pushit closes?
any idea and hot to that that script? currently I’m using it with python like this:
cmd = ['qterminal', '-e', 'sudo', 'apt', 'dist-upgrade'] process = subprocess.Popen(cmd) process.wait()
which is like callingit from terminal: $qterminal -e sudo apt dist-upgrade
it works ok, it even interacts, but when it finished qterminal closes so I don’t know if it ended well or not. Even if qterminal is configured to ask before closes, it ask but with no tab open.
really i am bad in scripting…
what i do with updates in my shortkeys :
#!/usr/bin/env bash n=$(checkupdates | wc -l) if [ "$n" != "0" ]; then notify-send "System update" "$n updates available." -i /usr/share/antergos/antergos-menu.png lxqt-sudo qterminal -e 'pacupd2' fi
#!/usr/bin/env bash pacman -Syu echo ‘gedaan, druk enter’ read
i call script 1 with shortkey with that lxqt-sudo qterminal calls pacupd2 …
further i am a noob in scripting this just work for me