[2.0.4] Linux: remove hotkey then add hotkey fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
Note that this same exact test when run in Windows Sikuli 2.0.4 works as expected. In other words, when I remove the hotkey then add the same hotkey back, the add hotkey return value is True (success) and not False like Linux Sikuli 2.0.4 (see below). Also note the [debug] statements. When a clean add or remove is done it doesn't always print out the [debug] statement (for example: "[debug] HotkeyManager: add Hotkey: "). Seems like it only prints out the first time a hotkey is added or removed.
Snippet from Sikuli startup:
SIKULIX_HOME in environment specified as /home/username/
running SikuliX: -Xmx512M -Dfile.
-jar /home/username/
java -Xmx512M -Dfile.
[debug] RunTime:temp folder ok: /tmp/Sikulix_
Options: *** options dump
Options: testing =
Options: OptionsFile = /home/username/
Options: *** options dump end
***** show environment for 2.0.4-2020-
user.home: /home/username
user.dir (work dir): /home/username/
user.name: username
java.io.tmpdir: /tmp
running 64Bit(amd64) on l (5.4.0-104-generic) from a jar
java 11 version 11 vm 11.0.14+
app data folder: /home/username/
executing jar: /home/username/
*** classpath dump sikulix
0: /home/username/
1: /home/username/
Hotkey test output:
[user (3/27/22, 10:20:14 AM)] **DEBUG** In registerExitHotkey:
[debug] HotkeyManager: add Hotkey: CTRL+ALT F5 (116, 10)
[debug] HotkeyManager: add Hotkey: CTRL+ALT+SHIFT F5 (116, 11)
windowsHotKeyRe
linuxHotKeyRegR
[user (3/27/22, 9:54:29 AM)] **DEBUG** In registerPauseHo
windowsHotKeyRe
linuxHotKeyRegR
[user (3/27/22, 10:02:27 AM)] **DEBUG** In unregisterPause
[debug] HotkeyManager: remove Hotkey: CTRL+ALT F7 (118, 10)
[debug] HotkeyManager: remove Hotkey: CTRL+ALT+SHIFT F7 (118, 11)
windowsHotKeyUn
linuxHotKeyUnRe
[user (3/27/22, 10:02:35 AM)] **DEBUG** In registerPauseHo
[error] HotkeyManager: addHotkey: failed to remove already defined hotkey
[error] HotkeyManager: addHotkey: failed to remove already defined hotkey
windowsHotKeyRe
linuxHotKeyRegR
[user (3/27/22, 10:07:55 AM)] **DEBUG** In unregisterPause
[error] HotkeyManager: removeHotkey: failed
[error] HotkeyManager: removeHotkey: failed
windowsHotKeyUn
linuxHotKeyUnRe
[user (3/27/22, 10:20:14 AM)] **DEBUG** In unregisterExitH
windowsHotKeyRe
linuxHotKeyRegR
summary: |
- remove hotkey then add hotkey fails on Linux version 2.0.4 + [2.0.4] Linux: remove hotkey then add hotkey fails |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 2.0.6 |