Bug 480083 - Cannot script konsole using dbus
Summary: Cannot script konsole using dbus
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-20 04:10 UTC by FirstAirBender
Modified: 2024-12-31 03:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FirstAirBender 2024-01-20 04:10:57 UTC
SUMMARY
***
According to https://docs.kde.org/stable5/en/konsole/konsole/scripting.html, we should be able to manage some aspects of konsole from the commandline. One thing I've been trying to accomplish is profile switching. Say I have a profile named Foobar.profile, I can't switch the current session profile using:

```
qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION org.kde.konsole.Session.setProfile Foobar
```

The only thing the above does is to changes the profile for yakuake.
***

STEPS TO REPRODUCE
1. Create a profile in konsole called Foobar
2. Type the command qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION org.kde.konsole.Session.setProfile Foobar
3. 

OBSERVED RESULT
No changes in the current konsole session

EXPECTED RESULT
Konsole session should switch to the new profile

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 ninjalj 2024-02-26 00:02:38 UTC
It works for me, on 23.08.
Comment 2 FirstAirBender 2024-03-18 02:21:05 UTC
(In reply to ninjalj from comment #1)
> It works for me, on 23.08.

It seems you're right. I can confirm it's working for me as well.
Comment 3 FirstAirBender 2024-03-18 02:22:17 UTC
I tested on 24.02.0
Comment 4 Kurt Hindenburg 2024-03-23 00:48:38 UTC
Is this still an issue?  If so, can you verify that your new profile shows up in 'qdbus $KONSOLE_DBUS_SERVICE /Windows/1 profileList' ?  

also you can shorten the command to 'qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION setProfile Base'
Comment 5 Christoph Cullmann 2024-12-01 15:47:54 UTC
Needs feedback.
Comment 6 Bug Janitor Service 2024-12-16 03:46:56 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2024-12-31 03:47:37 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.