Summary: | KWin should allow to send random signals to clients by windows | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Björn Lindqvist <bjourne> |
Component: | core | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | wishlist | CC: | kwin-bugs-null |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Björn Lindqvist
2016-06-14 20:05:07 UTC
Fyi, kwin sends SIGTERM, not SIGKILL. No idea whether this helps you but WPID=`xprop _NET_WM_PID`; [ -z "$WPID" ] || kill -SIGNAL ${WPID#* = } will allow you to send signals to windows which expose their clients PID (required by kwin just as well and rather common nowadays) by clicking the window. Are you sure? In the console it says "[1] 29237 killed ./factor" and not "terminated". Your script does not help because it requires using a console. But perhaps it can be done with a kwin script? I didn't realize before now that kwin is scriptable. If I can write a script, and maybe bind it to a keyboard shortcut, to do what your console line does, that would be perfectly adequate. Sorry, but this sounds like featuritis to me and is nothing I want to expose in the user interface. Especially as there are valid setups where this will not work and one is not allowed to send a signal, e.g. remote windows. That would directly increase the complexity of such a feature. The functionality you are looking for is provided by KSysGuard. I don't see a reason for KWin trying to be a KSysGuard Light. (In reply to Björn Lindqvist from comment #2) > Are you sure? quite so: https://quickgit.kde.org/?p=kwin.git&a=blob&h=2e6966643e2fbf778b20fb4ad75bddcd4d435a39&hb=7818a1fa9c03ebc8115a01b9ca509da70178ab83&f=client.cpp > In the console it says "[1] 29237 killed ./factor" LOL, the invoked dialog tool actually calls SIGKILL, smells like a bug. https://quickgit.kde.org/?p=kwin.git&a=history&h=7818a1fa9c03ebc8115a01b9ca509da70178ab83&f=killer%2Fkiller.cpp => bug #364337 > not "terminated". "Exit 15" > Your script does not help because it requires using a console. run "kcmshell5 khotkeys" you can assign a shortcut to it. > But perhaps it can be done with a kwin script? No. Calling random executables is not supported by kwin scripting. |