ok, wow - I don’t understand why you’d use KDE and have Dolphin as a flatpak - sorry; missed that part.
The following script will open my Konsole, run the command, and if I don’t ‘hold’ it open, the konsole closes when done with a slight 10 sec delay whilst also launching Marktext.
#!/bin/bash
commands() {
date +"It's now %R" | cowthink
echo "How's it going?"
read HOW && sleep 3
echo 'Youre' $HOW ' - and Im' $HOW | cowsay
sleep 2
clear
cowsay 'Goodbye then!'
flatpak run com.github.marktext.marktext
}
export -f commands
konsole -e "bash -c 'commands'"
sleep 10
Why make life so complicated?
konsole -e /bin/bash -c 'flatpak run org.kde.dolphin & exec /usr/bin/zsh'
@ben2talk I enjoyed your humour in this shebang script. LOL Unfortunately, this flies 37,000 feet above my present skills. For information, I’m a Dolphin and Konsole end-user. Not a software engineer.
konsole -e /bin/bash -c 'flatpak run org.kde.dolphin & exec /usr/bin/zsh'
How’s that one?
I tried just now. This happened:
Konsole succesfully opens
Konsole displays this:
kf.config.core: Watching absolute paths is not supported “/usr/share/color-schemes/BreezeDark.colors”
Dolphin does not open
End
I’m assuming that you meant this in my case:
#!/bin/bash
flatpak run org.kde.konsole -e /bin/bash -c 'flatpak run org.kde.dolphin & exec <ABSOLUTE PATH TO FOLDER>'
Reminder that the device I need this for is GNOME with Wayland, with both Dolphin and Konsole installed and used as Flatpak.
Opens dolphin as a child of the desktop (and not of your console process, so closing the terminal window won’t close it).
Isn’t there a similar command for Gnome?
Maybe it doesn’t meet your security requirements, but I like Krusader.
Aside from the dual folder panes, which I often find helpful, it can provide you with a console window at the bottom of each pane that automatically changes directory in sync with the director selected for display in the pane above.
This would effective turn your use case on its head, i.e. accessing the command line from the GUI file manager instead of the other way around.
Aside from the dual folder panes, which I often find helpful, it can provide you with a console window at the bottom of each pane that automatically changes directory in sync with the director selected for display in the pane above.
Dolphin has been doing this for ages, too (ok, it’s a single terminal window, that tracks the folder in the active pane+tab… )
i did. that’s why i mentioned this in my comment. in fact i was able to reproduce OPs observings with a regular kde neon install and a flatpak installation of dolphin and konsole in a current ubuntu (gnome) desktop.
anyhow . i’ve played around with my second and recommended approach and this is, what i came along and worked for me:
also here (but failes to install in flatpak variant)