Goal : Feed Kate in the same running process from a list of file given by a for loop.
The command I use :
for A_FOLDER in “$MAIN_PATH1” “$MAIN_PATH2” “$MAIN_PATH3” “$MAIN_PATH4” “$MAIN_PATH5” “$MAIN_PATH6” “$MAIN_PATH7” “$MAIN_PATH8” “$MAIN_PATH9” “$MAIN_PATH10” “$MAIN_PATH11” ; do
find “$A_FOLDER” -type f -print0 | xargs -0 kate
done
The result : Kate open files one by one sequentially. Closing the current kate process open a new file in a new kate process.
Some information : I use -print0/-0 because some files contains space ( .desktop files )
I made a test without any problem with :
find /home/user_install/.config -print | xargs kate