Commit 56027d3
Michael Collard
Fix: Suppress clipboard command error messages on Linux
Use OS-specific command strings with proper error redirection:
- Linux/Wayland: Append '2>/dev/null' to wl-copy/wl-paste and X11 fallbacks
- Windows: Use '2>nul' for PowerShell error suppression
- macOS: pbcopy/pbpaste don't need redirection (commands exist)
This prevents misleading 'wl-paste: not found' and similar errors from
appearing to users on systems without Wayland tools, while maintaining
full fallback logic for alternative clipboard utilities.1 parent 181f792 commit 56027d3
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments