It should be possible for other programs, to tell yakuake to open in a specific directory, when a yakuake sesseion is allready running. From a CLI, it should be possible to extend the yakuake CLI parameters: ``` -t, --new-tab <path> Open folders in new tab of last window (default) -r, --reuse-tab <path> Open folder in current tab of last used window -p, --profile <profilename> Start a new tab, with profile by name ``` Test Case A: 1. Start yakuake 2. from another terminal write: yakuake -t "~/Documents" 3. yakuake opens a new tab in "~/Documents" Test Case B: 1. Start yakuake 2. from another terminal write: yakuake -r "~/Documents" 3. yakuake opens "~/Documents" and reuse the current tab Test Case C: 1. Start yakuake 2. from another terminal write: yakuake -p "MyFzfProfile" "~/Documents" 3. yakuake opens a new tab in "~/Documents", with the yakuake profile called "MyFzfProfile"
Try the dbus interface. For example, using qdbus from another terminal... Open/close: qdbus org.kde.yakuake /yakuake/window toggleWindowState Change the directory of the active tab to /etc: qdbus org.kde.yakuake /yakuake/sessions runCommand "cd /etc" Open a new tab and change its location to /usr: qdbus org.kde.yakuake /yakuake/sessions addSession && qdbus org.kde.yakuake /yakuake/sessions runCommand "cd /usr"