Hello,
I’m not certain if this KDE forum is the right place, but since my question involves some KDE functions and dialogs, I decided to start here.
The situation: I’m using a simple bash script based on rsync on an MX Linux 23 KDE machine for backing up several important directories to an external drive. This script is still somewhat hands-on: it automatically mounts upon connecting, but I still run the back-up script from a terminal window. Afterwards, I unmount it and remove the drive.
Now for me this CLI-based approach is no problem at all, but I’d like to streamline this procedure for my less CLI-oriented users running the same MX LInux distro. So basically, what I’m looking for is a way to autostart the back-up script as soon as the back-up drive is mounted by KDE.
The user only needs to confirm making a back-up, and should receive a message to disconnect the drive after it completes - which I can do with kdialog, no problem there.
But is there a simple way to autostart a bash script (or any other command, for that matter) when automounting an external drive?