Bug 449540 - Open Tab in New Profile with Yakuake
Summary: Open Tab in New Profile with Yakuake
Status: RESOLVED DUPLICATE of bug 313210
Alias: None
Product: yakuake
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages All
: NOR minor
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-03 03:25 UTC by Tim Steinberger
Modified: 2023-04-05 21:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Steinberger 2022-02-03 03:25:19 UTC
SUMMARY
Currently there is not a way to open a new tab using a different profile in yakuake. This means having multiple profiles with different start commands is overall not very useful. Additionally, there are hotkeys you can set to open a new tab with a different profile, but pressing them does nothing. This is one of the few things that Konsole has but Yakuake doesn't. Adding this functionality would allow users to set different profiles for SSH with specific start up commands to make it easy to create a distinct new SSH instance or open a new tab that automatically connects to a container (among other things).


STEPS TO REPRODUCE
1. Create multiple profiles
2. Set hotkeys for each profile in settings
3. Use hotkey

OBSERVED RESULT
The hotkey set in settings doesn't actually do anything (for comparison these same steps in Konsole open a new tab in the specified profile). There also doesn't seem to be a way to do this in the GUI. The only method I've found so far has been to issue commands via qdbus.

EXPECTED RESULT
Entering the hotkey should open a new tab in the specified profile. Additionally there should be a button (idealy near the new tab button) which allows you to open a tab in a different profile.

SOFTWARE/OS VERSIONS
Yakuake: Latest release, this seems to be the case regardless of distro/OS.
Comment 1 Andrew Udvare 2023-03-07 10:13:46 UTC
One odd workaround is to use qdbus, where you set the Konsole defaultProfile to the one you want, create a new session and then set it back:

ynsp() {
local -r original_profile=$(qdbus org.kde.yakuake /Windows/1 defaultProfile)
qdbus org.kde.yakuake /Windows/1 setDefaultProfile "$1"
qdbus org.kde.yakuake /yakuake/sessions addSession
qdbus org.kde.yakuake /Windows/1 setDefaultProfile "$original_profile"
}
Comment 2 Ken Rushia 2023-04-05 21:35:39 UTC

*** This bug has been marked as a duplicate of bug 313210 ***