8000 autokey script omits last character · Issue #354 · autokey/autokey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
autokey script omits last character #354
Closed
@freddyw

Description

@freddyw

Classification:

Bug
(Pick one of: Bug, Crash/Hang/Data Loss, Performance, UI/Usability, Feature (New), Enhancement)

Reproducibility:

Always
(Pick one of: Always, Sometimes, Rarely, Unable, I Didn't Try)

Version

AutoKey version:
0.95.4, 0.95.7
Used GUI (Gtk, Qt, or both):
Gtk

Installed via: (PPA, pip3, …).
fedora DNF, OracleLinux pip3
Linux Distribution:
Fedora 31 and OracleLinux 8

Summary

Summary of the problem.
I have a script that retrieves a passphrase from the gnome-keyring. It works flawless when I use a python script 'gkeyring'. That is a python2 script however. So I wanted to use secret-tool instead (libsecret rpm) as this is (default) part of the OS. But then I use secret-tool to extract a passphrase (which it does fine on its own) and then use autokey the last character is consistently omitted.

Steps to Reproduce (if applicable)

  • secret-tool store --label="somephrase" somephrase somekey
    => whatever
  • $secret-tool lookup somephrase somekey
    whatever
  • create an autokey script
    output = system.exec_command("secret-tool lookup somephrase somekey")
    keyboard.send_keys(output + "\n")
  • execute script

Expected Results

'whatever' is returned by the autokey script

Actual Results

2020-01-15 09:41:33,853 INFO - service - Matched hotkey phrase/script with prompt=False
2020-01-15 09:41:33,854 DEBUG - service - Script runner executing: Script('somescript')
2020-01-15 09:41:33,854 ERROR - service - Ignored locking error in handle_keypress
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/autokey/service.py", line 207, in __tryReleaseLock
    self.configManager.lock.release()
RuntimeError: release unlocked lock
2020-01-15 09:41:33,884 DEBUG - iomediator - Send via event interface
2020-01-15 09:41:33,885 DEBUG - interface - Sending string: 'whateve'
2020-01-15 09:41:33,900 DEBUG - interface - Send special key: ['<enter>']
whateve
2020-01-15 09:41:33,962 DEBUG - iomediator - Key.SHIFT released
2020-01-15 09:41:33,983 DEBUG - iomediator - Key.CONTROL released

Notes

The same happens on both Fedora 31 (0.95.7, packaged version) and OracleLinux 8 (0.95.4, pip3 install).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0