Summary: | qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.activeSessionId return not correct ID | ||
---|---|---|---|
Product: | [Applications] yakuake | Reporter: | Max <max.yegorov> |
Component: | general | Assignee: | Eike Hein <hein> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | muesli |
Priority: | NOR | ||
Version First Reported In: | 24.02.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Max
2024-03-08 05:43:30 UTC
I need for this id=$(qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.activeSessionId) qdbus org.kde.yakuake /Sessions/$id org.kde.konsole.Session.setProfile "Profile 1" I think that's intended behavior and the session ids seem to be correct. What problems is this causing? I need to change the profile on the hot key. I get ID: id = $ (qdbus org.kde.yakuake / yakuake / sessions org.kde.yakuake.activeSessionId) The numbering is 0 1 2 3 4 5 ... Then, use it to change the profile: qdbus org.kde.yakuake /Sessions/$id org.kde.konsole.Session.setProfile "Profile 1" The fact is that here /yakuake/sessions ID will be incremental after closing the tabs. And here /Sessions numbers go without considering closed tabs (always 1 2 3 4 5 ...). Until the tabs close, everything works. When several tabs close (those on the right), then here /yakuake/sessions the numbering becomes so 0 4 5 8 ... And it becomes impossible, use of this data here /Sessions/$id The hotkeys and IDs may initially match, but I don't think this is something we can establish. After all, you can also move the tabs around, which will also affect their hotkey but not their IDs. |