Closed probonopd closed 2 weeks ago
I did a little looking into what it would take to implement this feature. When a command is passed using the --execute option, it's executed through a function defined in the QTermWidget dependency. I may be wrong, but I believe preventing the terminal from closing after executing a command would require changes to be made to [QTermWidget] (https://github.com/lxqt/qtermwidget)
Thank you very much @tsujan
You're welcome. I just added it to the wiki.
Is your feature request related to a problem? Please describe.
It would be nice if there was an easy and clean way to run commands in QTerminal without QTerminal closing when the command exits.
Describe the solution you'd like
Run a command in QTerminal with
--execute
but keep the window open after the command exits by using the--keep-open
option.Describe eventual alternatives you've considered
https://askubuntu.com/questions/20330/how-to-run-a-script-without-closing-the-terminal
Context
My use case is that when I type, e. g., "man hier" in a launcher application, that launcher application should run QTerminal to show
man hier
, but not exit afterwards.https://github.com/helloSystem/Menu/commit/0df31ccc66c5ed8697dec2f017c03435af6f0c97#diff-e8df92e19e41a93f64f17393a9ed8b5413fac614d3a12cc425235f14e32f6fc2R779
(Note to self: The same could also used to run executable scripts with the
.command
suffix when double-clicked in the file manager.)