[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-17 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=430388

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #17 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/34

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-17 Thread Weng Xuetian
https://bugs.kde.org/show_bug.cgi?id=430388

Weng Xuetian  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #16 from Weng Xuetian  ---
(In reply to Nate Graham from comment #5)
> No, the sources of the problem are different. This KCM has a totally custom
> implementation, while KMenuEdit and the Shortcuts KCM use KGlobalAccel
> 
> Please file a new bug for your issues with the kglobalaccel-based issue seen
> in KMenuEdit and the Shortcuts page, which doesn't have anything to do with
> this bug report. :)

But looks like "kcmshell5 khotkeys" would also produced the same error.

Looking closer, I think the bug is in kxmlgui, when it is ported to
KeySequenceRecorder.

I think the issue is when it is constructed, the widget may not yet added to a
window. So pass the window to KeySequenceRecorder in constructor doesn't work.

Sent a merge request to fix this.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-17 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=430388

Patrick Silva  changed:

   What|Removed |Added

 CC||bugsefor...@gmx.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-17 Thread Juan Simón
https://bugs.kde.org/show_bug.cgi?id=430388

Juan Simón  changed:

   What|Removed |Added

 CC||deced...@gmail.com

--- Comment #15 from Juan Simón  ---
Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

Same problem. The error in console is: "kf.guiaddons: Cannot record without a
window"

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Heu Fui
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #14 from Heu Fui  ---
(In reply to Jeff Tratt from comment #13)
> (In reply to Heu Fui from comment #12)
> > Thank you. Will do that. When all else fails, manual editing files is a
> > great solution.
> 
> You're welcome. You will need to run the following to make the files
> editable in the future:
> sudo chattr -i ~/.config/kglobalshortcutsrc
> sudo chattr -i ~/.config/khotkeysrc
> 
> the '-i' will remove the immutable bit. As immutable nothing can edit these
> files ;)

Thanks again! You've pointed out in the right direction. Did exactly what you
proposed and now my much needed custom shortcut is finally working.

Will keep those files immutable until this bug is solved.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Jeff Tratt
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #13 from Jeff Tratt  ---
(In reply to Heu Fui from comment #12)
> Thank you. Will do that. When all else fails, manual editing files is a
> great solution.

You're welcome. You will need to run the following to make the files editable
in the future:
sudo chattr -i ~/.config/kglobalshortcutsrc
sudo chattr -i ~/.config/khotkeysrc

the '-i' will remove the immutable bit. As immutable nothing can edit these
files ;)

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Heu Fui
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #12 from Heu Fui  ---
(In reply to Jeff Tratt from comment #11)
> (In reply to Heu Fui from comment #10)
> > I did just that, but only editing khotkeysrc. Unfortunately, I couldn't
> > change it manually, as it gets rewritten as soon KDE starts.
> 
> Edit the file ~/.config/khotkeysrc
> then in terminal enter
> sudo chattr +i ~/.config/khotkeysrc
> 
> Verify the file is immutable:
> lsattr ~/.config/khotkeysrc
> i-e- ~/.config/khotkeysrc
> The "i" validates the file is immutable.
> 
> You may need to edit both files for this kludge to work. I didn't try
> editing only the one file.

Thank you. Will do that. When all else fails, manual editing files is a great
solution.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Jeff Tratt
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #11 from Jeff Tratt  ---
(In reply to Heu Fui from comment #10)
> I did just that, but only editing khotkeysrc. Unfortunately, I couldn't
> change it manually, as it gets rewritten as soon KDE starts.

Edit the file ~/.config/khotkeysrc
then in terminal enter
sudo chattr +i ~/.config/khotkeysrc

Verify the file is immutable:
lsattr ~/.config/khotkeysrc
i-e- ~/.config/khotkeysrc
The "i" validates the file is immutable.

You may need to edit both files for this kludge to work. I didn't try editing
only the one file.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Heu Fui
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #10 from Heu Fui  ---
(In reply to Jeff Tratt from comment #9)
> I've edited:
> ~/.config/kglobalshortcutsrc
> ~/.config/khotkeysrc
> and changed the hotkey to what I want. When I reboot and log into tty F1 and
> look at the files they are what I edited. When I login to the gui the hotkey
> is replaced with "none" in both files.
> 
> As a kludge I did this:
> sudo chattr +i ~/.config/kglobalshortcutsrc
> sudo chattr +i ~/.config/khotkeysrc
> to make the files immutable. Reboot and login now keeps the hotkeys and they
> work. I don't know what is overwriting the files on login.
> 
> I'm on up to date kde neon plasma.

I did just that, but only editing khotkeysrc. Unfortunately, I couldn't change
it manually, as it gets rewritten as soon KDE starts.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Jeff Tratt
https://bugs.kde.org/show_bug.cgi?id=430388

Jeff Tratt  changed:

   What|Removed |Added

 CC||jtr...@gmail.com

--- Comment #9 from Jeff Tratt  ---
I've edited:
~/.config/kglobalshortcutsrc
~/.config/khotkeysrc
and changed the hotkey to what I want. When I reboot and log into tty F1 and
look at the files they are what I edited. When I login to the gui the hotkey is
replaced with "none" in both files.

As a kludge I did this:
sudo chattr +i ~/.config/kglobalshortcutsrc
sudo chattr +i ~/.config/khotkeysrc
to make the files immutable. Reboot and login now keeps the hotkeys and they
work. I don't know what is overwriting the files on login.

I'm on up to date kde neon plasma.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #8 from Nate Graham  ---
I'm a KDE developer familiar with the code in question and I'm telling you that
they are unrelated. If you don't want to file a new bug report to track your
issue, that's fine, but then we won't be able to investigate it and hopefully
provide a fix.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread YAFU
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #7 from YAFU  ---
If they have different system shortcuts, then you look for the source of the
problem in Qt/GUI and the field type for shortcut input. I don't believe in
these kinds of coincidences.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=430388

Nate Graham  changed:

   What|Removed |Added

 CC||heu...@telegmail.com

--- Comment #6 from Nate Graham  ---
*** Bug 430460 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #5 from Nate Graham  ---
No, the sources of the problem are different. This KCM has a totally custom
implementation, while KMenuEdit and the Shortcuts KCM use KGlobalAccel

Please file a new bug for your issues with the kglobalaccel-based issue seen in
KMenuEdit and the Shortcuts page, which doesn't have anything to do with this
bug report. :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread YAFU
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #4 from YAFU  ---
And I get the same error with kmenuedit:
kf.guiaddons: Cannot record without a window

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-16 Thread YAFU
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #3 from YAFU  ---
In both cases from System Settings or KDE Menu Editor the same thing happens,
when you click on the field to enter a new key combination, the field does not
react and it keeps showing "none" (or old key combination) and new key
combination is not entered. The problem is recent and happens in both cases at
the same time. The source of the problem should be the same, or is it really a
very strange coincidence.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-15 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=430388

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

--- Comment #2 from Nate Graham  ---
This bug report is about the "Custom Shortcuts" page in System Settings, not
the different system used by the "Shortcuts" page and KMenuEdit.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-15 Thread YAFU
https://bugs.kde.org/show_bug.cgi?id=430388

--- Comment #1 from YAFU  ---
Hi.
The same thing is happening to me when I want to configure keyboard shortcuts
from KDE Menu Editor.

KDE Neon (Testing)
KDE Frameworks Version: 5.77.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-14 Thread Weng Xuetian
https://bugs.kde.org/show_bug.cgi?id=430388

Weng Xuetian  changed:

   What|Removed |Added

  Component|kcm_keys|kcm_khotkeys
 CC||wen...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 430388] Custom Shortcuts cannot record key presses

2020-12-14 Thread CUI Hao
https://bugs.kde.org/show_bug.cgi?id=430388

CUI Hao  changed:

   What|Removed |Added

   Platform|Other   |Archlinux Packages

-- 
You are receiving this mail because:
You are watching all bug changes.