Skip to content

fix: zsh-completions fails when no outputs are found#66

Open
mazunki wants to merge 4 commits intoFerdi265:mainfrom
mazunki:main
Open

fix: zsh-completions fails when no outputs are found#66
mazunki wants to merge 4 commits intoFerdi265:mainfrom
mazunki:main

Conversation

@mazunki
Copy link
Copy Markdown
Contributor

@mazunki mazunki commented Apr 5, 2025

_values needs a non-empty value passed to it. Your change caused the completion to error on my system, since my XDG_CURRENT_DESKTOP was not set.

This PR changes this situation to a gracious warning instead. Is the same fix necessary on bash?

@Ferdi265
Copy link
Copy Markdown
Owner

Ferdi265 commented Apr 5, 2025

Ah, sorry for that, I don't use zsh personally, and I must have missed this during my testing. Will look at this in the coming days.

@mazunki
Copy link
Copy Markdown
Contributor Author

mazunki commented Apr 5, 2025

No biggie, it wasn't meant as a blame :)
Thanks.

Copy link
Copy Markdown
Owner

@Ferdi265 Ferdi265 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some review comments about the warning message and the way that missing outputs are checked for.

Comment thread scripts/completions/zsh-completions/_wl-mirror
Comment thread scripts/completions/zsh-completions/_wl-present
@mazunki
Copy link
Copy Markdown
Contributor Author

mazunki commented Apr 7, 2025

Hm, actually, I'm not sure if this is specific to my system, but I'm not receiving the inner messages. Perhaps i should move the check for valid values of the variables outside.

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

Successfully merging this pull request may close these issues.

2 participants