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

Cannot execute multi-word commands through IPC from command line #410

Open
silvarc141 opened this issue Sep 22, 2023 · 2 comments
Open

Cannot execute multi-word commands through IPC from command line #410

silvarc141 opened this issue Sep 22, 2023 · 2 comments

Comments

@silvarc141
Copy link
Contributor

silvarc141 commented Sep 22, 2023

Problem

Cannot execute GlazeWM commands that have more than 1 word (have their own arguments) through IPC from command line,

Details

Run any command with more than one word.
For example in powershell, with GlazeWM from scoop:

glazewm command "focus workspace 1"
Result: Invalid command 'focus'
GlazeWM output: 09/22/2023 12:59:33[IpcMessageHandler] IPC message received: command focus workspace 1.

glazewm command '"exit wm"'
Result: Invalid command 'exit'
GlazeWM output: 09/22/2023 13:01:40[IpcMessageHandler] IPC message received: command exit wm.

Note

Single word command work as expected:
glazewm command "close"
GlazeWM output:

09/22/2023 13:03:59[IpcMessageHandler] IPC message received: command close.
09/22/2023 13:03:59[Bus] Command CloseWindowCommand invoked.

Info

OS: Windows 11
Shell: Powershell 5
Terminal emulator: Alacritty

@silvarc141
Copy link
Contributor Author

silvarc141 commented Sep 22, 2023

After inspecting this, turns out the following works:
glazewm command \"""focus workspace 1\"""
I believe this should be simplified or corrected in the command description.

@burgr033
Copy link

glazewm command '"focus workspace 1"' works fine at my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants