Skip to content
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

[BUG]: AHK fail with username contains "space" #856

Open
GiancarloAparicio opened this issue May 29, 2024 · 2 comments
Open

[BUG]: AHK fail with username contains "space" #856

GiancarloAparicio opened this issue May 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@GiancarloAparicio
Copy link

Describe the bug
Hello, when the AHK option is used, and the local user contains a space, the execution fails

To Reproduce
Steps to reproduce the behavior:

  1. Have a user with space, example "Metrica Andina"Go to '...'
  2. run "komorebic start --ahk"

Expected behavior
I tried and this solution works for me

$scriptPath = "C:\Users\Metrica Andina\komorebi.ahk"
Start-Process 'autohotkey.exe' -ArgumentList "`"$scriptPath`"" -WindowStyle Hidden

Screenshots and Videos
Add screenshots and videos to help explain your problem.
image

Operating System
Provide the output of systeminfo | grep "^OS Name\|^OS Version"

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/D Compilación 22631
@GiancarloAparicio GiancarloAparicio added the bug Something isn't working label May 29, 2024
@LGUG2Z
Copy link
Owner

LGUG2Z commented May 29, 2024

Not sure what else can be done here besides quoting the path given as an argument. Any PowerShell experts available to chime in?

@LGUG2Z
Copy link
Owner

LGUG2Z commented May 29, 2024

ee76d8b

You can try this to see if it's the case that we are just missing -ArgumentList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants