Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

the-clipboard cannot be cleared, or set at the end of a program.

オープン
#306 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
領域
desktop

調査の方向性

まず、Linux X11 上で the-clipboard と set-clipboard-string を使い、issue の Racket スニペットにある 2 つのケースを再現します。次に、それらのエントリポイントの背後にある実装と、既存のクリップボードテストを追跡します。空の文字列でクリップボードがクリアされ、最後のクリップボード更新が sleep を追加しなくても保持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The system clipboard the-clipboard cannot be cleared by sending it an empty string. And as far as I can tell, there is no clear-clipboard-string procedure available.

Also, if the clipboard is set using set-clipboard-string at the end of a program, it will not set the clipboard unless an extra (sleep 1) is inserted after.

This happens on Linux X11.

#lang racket/base

(require racket/class)
(require racket/gui/base)

;; This works.
(send the-clipboard set-clipboard-string "test" (current-seconds))
(sleep 1)

;; Problem 1: doesn't clear the clipboard
(send the-clipboard set-clipboard-string "" (current-seconds))
(sleep 1)

;; Problem 2: Clipboard not set without an extra sleep
(send the-clipboard set-clipboard-string "test2" (current-seconds))
;; (sleep 1) ;shouldn't need this
主要言語
Racket
スター
68
フォーク
83
平均マージ
21時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

racket/gui のほかの issue

racket/gui の issue をすべて見る

似ている issue

Desktop Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。