-
Notifications
You must be signed in to change notification settings - Fork 5
Fixed ydotool, removed hardcoded username #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,5 +29,5 @@ elif [ "$XDG_SESSION_TYPE" = "x11" ]; then | |
| fi | ||
|
|
||
| # Run enhanced version (with pre-buffer to capture initial words) | ||
| cd /home/jordan/voice-typing-nix | ||
| exec nix-shell shell.nix --run "python enhanced-voice-typing.py $DEFAULT_ARGS $*" | ||
| cd "$(dirname "$0")" | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is the correct way to CD into the folder that the script is running from. It looked like there might be some more comprehensive options, but this works fine for me. |
||
| YDOTOOL_SOCKET=/run/ydotoold/socket exec nix-shell shell.nix --run "python enhanced-voice-typing.py $DEFAULT_ARGS $*" | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here's the other side of the Python code change above. It looks like there was a change in the env or param for |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why
ydotoolhas changed its interface to not require a socket path param, but require an env variable. Anyway, this worked for me. I'm on 1.0.4, which I believe is the latest, in NixOS unstable.