Bug 480083

Summary: Cannot script konsole using dbus
Product: [Applications] konsole Reporter: FirstAirBender <noblechuk5>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: ninjalj
Priority: NOR    
Version: 23.08.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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'