[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 v...@v0.vc changed: What|Removed |Added CC||v...@v0.vc -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 AT changed: What|Removed |Added CC||atmaho...@gmail.com --- Comment #19 from AT --- The workaround isn't super reliable working with the journal. Almost always the output is in the journal immediately after the dbus calls, but occasionally I find it's delayed by some milliseconds. So you have to poll or retry. A bigger issue is you can't have multiple scripts running in parallel since it's this global journal output. You'd have to add some tag to each print statement to make sure you grep output from the right script only. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Yaroslav Sidlovsky changed: What|Removed |Added CC||zawer...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Jin Liu changed: What|Removed |Added See Also||https://bugs.kde.org/show_b ||ug.cgi?id=477069 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 qq6fHY79E45suV changed: What|Removed |Added CC|k...@sweatyballs.es | -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Geert Janssens changed: What|Removed |Added CC||i...@kobaltwit.be --- Comment #18 from Geert Janssens --- It took me a while to figure out that "console.info" in comment 13 was meant to be used instead of "print" in the scripts... That does indeed work. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Michael Weghorn changed: What|Removed |Added CC||m.wegh...@posteo.de -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Kristen McWilliam changed: What|Removed |Added CC||kmcwilliampub...@gmail.com --- Comment #17 from Kristen McWilliam --- I can confirm what @hexchain says, `console.info` works - for me nothing else was producing output at all, but this finally did. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #16 from Andrew Shark --- Created attachment 160274 --> https://bugs.kde.org/attachment.cgi?id=160274=edit The not bold timedate text at first launch -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #15 from Andrew Shark --- I also noticed that at first run, the datetime is not bold (expected: bold as all other launches). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Bug Janitor Service changed: What|Removed |Added Status|CONFIRMED |ASSIGNED --- Comment #14 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3042 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Andrew Shark changed: What|Removed |Added Platform|openSUSE|Archlinux Version|5.23.2 |5.27.5 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Ken Rushia changed: What|Removed |Added CC||k...@kenrushia.com -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Yuxin Wu changed: What|Removed |Added CC||ppwwyy...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 hexchain changed: What|Removed |Added CC||k...@hexchain.org --- Comment #13 from hexchain --- It is also possible to use "console.info" if you are too lazy to modify environment variables and re-login, like me. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #12 from Andrew Shark --- For google searchers. I looked here https://wiki.archlinux.org/title/KDE#systemd_startup and to ensure you have enabled systemd startup, use `systemctl --user status plasma-plasmashell.service`. If it is active, it is working. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #11 from Andrew Shark --- Wow, that worked now. Without QT_LOGGING_RULES. I can now see `... kwin_wayland[994]: js: Hello` messages in journal. Thank you very much! -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #10 from Natalie Clarius --- Also make sure that you have logging for KWin scripts enabled: > export QT_LOGGING_RULES='js=true; kwin_scripting=true' -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #9 from Natalie Clarius --- (In reply to Andrew Shark from comment #7) > Hmm, it just plainly does not work for me. The latter command is just > silent. The script in interactive console is just `print("Hello")`. What > else I can check? I am on Arch Linux if that matters. I see the same result > (no output) in the post > https://www.reddit.com/r/kde/comments/qo1jtj/ > kwin_scripting_console_not_working/. Are you on Wayland? Then logging might not work. Consider using systemd boot: https://invent.kde.org/plasma/plasma-workspace/-/wikis/Plasma-and-the-systemd-boot -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #8 from Chris Holland --- The systemd logs printed in journalctl is just capturing the kwin_x11 output. It's possible that your distro doesn't capture the terminal output, or kwin restarted somehow. The journalctl workaround works fine for me OpenSUSE Tumbleweed Plasma 5.24.5. Another workaround is to open Konsole, and run the following to restart kwin and log it's output to the Konsole window. kstart5 -- kwin_x11 --replace `kwin_x11 --replace` is the actual command, but `kstart5` will keep kwin running after you close Konsole. The `--` tells kstart5 to treat everything after it as a single argument (the command to run). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #7 from Andrew Shark --- Hmm, it just plainly does not work for me. The latter command is just silent. The script in interactive console is just `print("Hello")`. What else I can check? I am on Arch Linux if that matters. I see the same result (no output) in the post https://www.reddit.com/r/kde/comments/qo1jtj/kwin_scripting_console_not_working/. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #6 from Natalie Clarius --- (In reply to Andrew Shark from comment #5) > This `journalctl -b0 -f` cannot print the output from script in interactive > console, right? Yes, it can. But that output contains a lot of other stuff to. A more specific command to retreive output from JavaScript-based KWin and Plasmshell scripting is: > journalctl -g "js:" -f -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Kristen McWilliam changed: What|Removed |Added CC|kmcwilliampub...@gmail.com | -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Andrew Shark changed: What|Removed |Added CC||ash...@linuxcomp.ru --- Comment #5 from Andrew Shark --- This `journalctl -b0 -f` cannot print the output from script in interactive console, right? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 postix changed: What|Removed |Added CC||pos...@posteo.eu -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Kristen McWilliam changed: What|Removed |Added CC||kmcwilliampub...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Chris Holland changed: What|Removed |Added CC||zrenf...@gmail.com --- Comment #4 from Chris Holland --- I just noticed in OpenSUSE Tumbleweed (kwin 5.23.5) that the kwin print output and errors are printed to the system journal. Use: journalctl -b0 -f -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 imraro changed: What|Removed |Added CC||imr...@dao.pm -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 natalie_clar...@yahoo.de changed: What|Removed |Added CC||natalie_clar...@yahoo.de -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 --- Comment #3 from qq6fHY79E45suV --- (In reply to qq6fHY79E45suV from comment #2) > I just switched to Plasma from Gnome after they broke my workflow AGAIN(!!!) > with the latest update. I am trying to port my GJS scripts to KWin and just > ran into this. Oops :-( I just noticed the platform the bug is registered under. I'm using the latest Neon. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 qq6fHY79E45suV changed: What|Removed |Added CC||k...@sweatyballs.es --- Comment #2 from qq6fHY79E45suV --- I just switched to Plasma from Gnome after they broke my workflow AGAIN(!!!) with the latest update. I am trying to port my GJS scripts to KWin and just ran into this. Oops :-( -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 445058] kwin interactive console does not work
https://bugs.kde.org/show_bug.cgi?id=445058 Nate Graham changed: What|Removed |Added Ever confirmed|0 |1 Status|REPORTED|CONFIRMED CC||n...@kde.org --- Comment #1 from Nate Graham --- Can confirm. -- You are receiving this mail because: You are watching all bug changes.