Starting a yakuake session with specified profile using dbus?

632 Views Asked by At

How can I launch a yakuake session with a specific profile? Unlike org.kde.konsole.Window's newSession method, the addSession method of org.kde.yakuake /yakuake/sessions doesn't take any arguments and thus doesn't let me specify a profile name. How can I circumvent this?

2

There are 2 best solutions below

0
On
$ qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession
$ qdbus org.kde.yakuake /Windows/1 org.kde.konsole.Window.newSession 'profile' '.'

Of course, the Window number may be different.

0
On

The following works for me

➜ read session_id < <(qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession)
➜ qdbus org.kde.yakuake /Sessions/$((session_id + 1)) org.kde.konsole.Session.setProfile <profile_name>