Summary: | kwin scripting "registerShortcut" does not work when starting script via dbus | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | github |
Component: | scripting | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 4.10.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
github
2013-04-15 10:01:45 UTC
Sorry I messed up that script after pasting it, it should read: print("script startup") registerShortcut("Script Binding Test", "test", "Meta+B", function() { print("got key") }) Here is the results of calling "registerShortcut" 4 times to my kglobalshortcutsrc (each time with a slightly different title): Script Test1=,Meta+B,cool Script Test2=Meta+B,Meta+B,cool Script Test3=,Meta+B,cool Script Test4=,Meta+B,cool Now strangely enough the time I registered it with "Script Test2" the key binding actually worked. Seems random as to what type of entry it creates. Also... seems kinda weird I get all these duplicate entries in that file just from registering script shortcuts but I guess that's okay. seems like a worksforme. The global shortcut system is not very good and not really suited for rapid prototyping of scripts. You need to ensure in the global shortcut editor that the keybinding is actually registered. I have found the actual issue, I guess I'll open a new bug for it. *** Bug 318383 has been marked as a duplicate of this bug. *** |