As part of a script I need something that will change to a specific directory, Launch Konsole, then issue a command.
#!/bin/bash
cd /home/don/Temp
git clone https://github.com/endeavouros-team/PKGBUILDS.git
konsole --noclose -e ls -l
This changes directories, downloads the files, opens a konsole window, and does perform the ls -l command, but it does not give me a prompt or cursor. The window is useless at this point and I have to close the window. I need the konsole window left operational for more commands. namely makepkg.
One site I visited suggested putting a & and the end of the konsole command. It didn’t help.
I may have got this wrong - but it sounds like you just want to open a Konsole in a particular location and then want to type in commands in that Konsole. I would lose the -e <blah>
This works for me
That is exactly correct in what I wanted. However, there doesn’t seem to be a simple straight forward way to do this. In favor of KISS I have done things a little differently.