X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1696425032; x=1697029832; i=clafi AT gmx DOT com; bh=O+kk5o7t4lUckMst704/KfT/3eX7RIBy5ohPOMHEGy0=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=B0HAXU1iTAz0Aw72mgOrD1ZfL2x1PUQoAb7PjHVemMzwGPrBZSi7U9XJe6dVl9cdtcw3JvTNGD7 htKu9V/KiSJnY1tE9F09JcOqJXGPr7I+7iQomd/Ztmo0boT21joMo+PmpD48LVTGSrYTPZtjlPRDN F00ss2Cz2Vou4K0u5ctoMILpjQjsmb7BdyxqLupsRFVma8Z5sKOG27mJz5D8Ce+G2btp+NXzbmJDr mqEpaI4UkBKKhBX9WNx59gMr26K3xeHdQJlByTz8bS8SQYnJ1WccRV5FJECZAxLPcSQHva0Md9pSJ jlLNlLFf5kFvwix1GheaCkWUPaykH0qAI8zw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a MIME-Version: 1.0 Message-ID: From: "Claudio Fabri (clafi AT gmx DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Subject: Re: [geda-user] Paste menu inactive despite copy/cut Content-Type: text/plain; charset=UTF-8 Date: Wed, 4 Oct 2023 15:10:32 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <699b1150-3961-abd7-cf78-80ec92c0a979@grinsen-ohne-katze.de> References: <699b1150-3961-abd7-cf78-80ec92c0a979 AT grinsen-ohne-katze DOT de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:f6d+GGWrP7ttZvzq1LThCrOr6qY7q5GyPdRxAnK8/KPlq9KHdMv8wXzx2Jd1cd6JFmlnu r4/tgpgj1DymiFoaQ9GVO3eSjcILjyCGN0Sz2ENiHo5a9h8KPiCbIw6hag5nQooEgIWGKgubWmYE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= Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 394DAaqh022983 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi Roland and thanks. > Sent: Thursday, September 28, 2023 at 10:29 PM > From: "Roland Lutz" > To: "Claudio Fabri (clafi AT gmx DOT com) [via geda-user AT delorie DOT com]" > Subject: Re: [geda-user] Paste menu inactive despite copy/cut > > Hi Claudio, > > On Mon, 25 Sep 2023, Claudio Fabri (clafi AT gmx DOT com) [via > geda-user AT delorie DOT com] wrote: > > gschem doesn't seem to be able to paste anymore. I can Cut (Ctrl+X) or > > copy (Ctrl+C) but the "Paste" menu is always disabled/inactive. Pressing > > Ctrl+V does nothing at all. I've noticed that a few days ago. I have > > cleaned yay cache and recompiled geda-gaf again but it doesn't solve the > > problem. > > the Edit/Paste action is enabled or disabled based on whether the > clipboard contents support the MIME type "application/x-geda-schematic". > Apparently, this isn't detected correctly on your machine. Do you use a > clipboard manager or something similar? Nice to know. I'm using Xfce's clipboard manager `clipman` indeed. And in Xfce's "Default applications" settings, I see 3 occurrences: * application/x-geda-gsch2pcb-project (set by me to run `gedit`) * application/x-geda-schematic (set by me to run "gEDA schematic editor") * application/x-geda-symbol (set by me to run "gEDA schematic editor") Thanks to your hint, the issue is now solved. I've updated the second and now gschem does paste! I assume the stored application path was invalid. Now everything works even with Xfce's clipboard manager plugin active. > The easiest fix would be to force the action active by replacing > > gschem_action_set_sensitive (action_clipboard_paste, usable, w_current); > > with > > gschem_action_set_sensitive (action_clipboard_paste, TRUE, w_current); > > in gschem/src/x_clipboard.c . This will fail if the clipboard contents > don't adhere to the "application/x-geda-schematic" MIME type, though, so > it won't work if the problem is with cut/copy or if your clipboard > contents are garbled by another application or tool. > > Roland > > Have a great day, C.F.