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

Closed
opened 2026-01-05 14:50:21 +01:00 by adam · 2 comments
Owner

Originally created by @GiancarloAparicio on GitHub (May 29, 2024).

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
Originally created by @GiancarloAparicio on GitHub (May 29, 2024). **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 ```powershell $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](https://github.com/LGUG2Z/komorebi/assets/61440825/ee17f8ee-4f8d-4f40-bfa8-9b18a796a529) **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 ```
adam added the bug label 2026-01-05 14:50:21 +01:00
adam closed this issue 2026-01-05 14:50:21 +01:00
Author
Owner

@LGUG2Z commented on GitHub (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 commented on GitHub (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?
Author
Owner

@LGUG2Z commented on GitHub (May 29, 2024):

ee76d8bc1f

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

@LGUG2Z commented on GitHub (May 29, 2024): https://github.com/LGUG2Z/komorebi/commit/ee76d8bc1fb479f6d481805b48ec0ad7a47646c9 You can try this to see if it's the case that we are just missing `-ArgumentList`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#395