fix(setup): check for wl-copy instead of wl-clipboard command #970
+5
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #965 - wl-clipboard dependency not found on setup
Problem
When users run
/setup, gptme reports wl-clipboard as missing even when it's installed because it checks for awl-clipboardexecutable that doesn't exist. Thewl-clipboardpackage provideswl-copyandwl-pasteexecutables instead.Solution
Added a
check_commandfield to the dependency definition that specifies the actual executable to check (wl-copy) while still displaying the package name (wl-clipboard) to users.Changes
check_commandfield to wl-clipboard dependency entrycheck_commandif provided, falling back tonameTesting
wl-copyis the primary executable that gets checkedwl-clipboardstill shown to users in outputImportant
Fixes
wl-clipboarddependency check insetup.pyby verifyingwl-copyexecutable in Wayland environments.wl-clipboardwas reported missing by checking forwl-copyinstead ofwl-clipboard.setup.pyto usecheck_commandif provided, otherwise defaults toname.check_commandfield towl-clipboarddependency entry insetup.py.wl-copyis checked in Wayland environments.wl-copyis checked andwl-clipboardis displayed to users.This description was created by
for 2af8839. You can customize this summary. It will automatically update as commits are pushed.