Bug 434144 - can't open showInteractiveKWinConsole
Summary: can't open showInteractiveKWinConsole
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: scripting (show other bugs)
Version: 5.21.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-08 16:19 UTC by Edward Oubrayrie
Modified: 2021-06-09 02:34 UTC (History)
4 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 Edward Oubrayrie 2021-03-08 16:19:26 UTC
SUMMARY

I can't open showInteractiveKWinConsole (nor it's non-KWin sibling)

STEPS TO REPRODUCE
1. qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole


OBSERVED RESULT
Nothing. Nothing related in `journalctl -b` and command "succeeds" (exit code 0), so I don't now how to debug this.

EXPECTED RESULT
Console opens, or at least an error is logged in journal.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 20.04 focal
KDE Plasma Version: 4:5.21.2-0xneon+20.04+focal+build23
KDE Frameworks Version: 5.79.0-0xneon+20.04+focal+build23
Qt Version: 5.15.2+dfsg-0xneon+20.04+focal+build23

ADDITIONAL INFORMATION
Last it worked for sure was before update Neon 18.04->20.04. It may have worked after too, not sure.
Comment 1 Edward Oubrayrie 2021-03-08 16:20:57 UTC
Oh, last it worked, it was with the old name:

qdbus org.kde.plasma-desktop /App local.PlasmaApp.showInteractiveKWinConsole
Comment 2 Lê Hoàng Phương 2021-03-10 06:30:03 UTC
I can confirm this one too. Too make sure that I did not make a typo on the command, I used qdbusviewer. Both showInteractiveConsole and showInteractiveKwinConsole don't work on KDE Neon 5.21.2.
Comment 3 lnxusr 2021-05-14 22:55:22 UTC
I have the same issue with Plasma 5.21.5.  According to the KWin Scripting Tutorial (https://develop.kde.org/docs/plasma/kwin/) there are two ways to open the console.  First enter 'wm console' in Krunner, which does nothing, and entering that command in a terminal results in a 'wm: command not found' error, and via dbus with 'qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveKWinConsole' in a terminal, which gives no output at all.

Reporter stated in comment #1 that he got it working by using an older command 'qdbus org.kde.plasma-desktop /App local.PlasmaApp.showInteractiveKWinConsole', but that gives me an error of 'Service 'org.kde.plasma-desktop' does not exist.'
Comment 4 David Edmundson 2021-05-21 15:45:15 UTC
The docs are now up to date
Comment 5 lnxusr 2021-05-21 17:50:17 UTC
Then this bug is still valid.  The docs say now to enter "qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveKWinConsole" in the console which, again, does nothing and displays no output.
Comment 6 Edward Oubrayrie 2021-06-08 14:22:23 UTC
This is fixed for me with today's Plasma 5.22 on focal-based KDE Neon testing 

Package: kwin-x11
Version: 4:5.22.0+p20.04+tstable+git20210608.0107-0

This command works again:
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveKWinConsole

(And the old /App is still broken as expected, what I meant in comment#1  was that maybe the path change was the cause of the breakage. Sorry for the confusing wording)
Comment 7 lnxusr 2021-06-09 02:34:39 UTC
I can confirm it's fixed in Plasma 5.22, also entering 'wm console' in Krunner works as well.