Geany 1.38 fails to paste Primary selection

Moderator: Forum moderators

Post Reply
User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Geany 1.38 fails to paste Primary selection

Post by MochiMoppel »

Using Bookworm Pup64 Beta-2 with kernel 5.4.53

Selecting a text string puts this string into the Primary buffer, which then can be pasted with mouse middle-click. This works in all applications that allow text selection, so it should also work in Geany, but sometimes it doesn't.

How to reproduce:
1) Select a text string in Geany
2) Change the text beam cursor by using arrow keys or by clicking on a new location
3) Middle click with mouse. Now the selected text should be inserted, however nothing happens

What does work:
After text selection switching to another application, e.g. Leafpad or Terminal, and middle click
Also pasting from another application into Geany works.
Lastly it also works when skipping step 2) of above.

What (probably) happened:
What seems to happen is that in Geany 1.38 the combination of selection followed by text cursor change clears the Primary buffer.

How to verify:
After above step 1) run this command in a terminal: xclip -o . This will return the selected text
Do the same thing, this time with steps 1) and 2). The command xclip -o will return error message Error: target STRING not available

The version used in BW64 is
Geany 1.38
"Sulamar"
(built on or after 2023-05-28)
Using GTK+ v3.24.37 and GLib v2.74.6 runtime libraries

By comparison the version used in F96-CE_4 works correctly:
Geany 1.37.1
"Wolbam"
(built on or after 2022-11-11)
Using GTK+ v2.24.32 and GLib v2.64.6 runtime libraries

How to fix:
In Parcellite preferences activate "Use Primary (Selection)" option. By default it's off.
My theory is that this acts like an application switch as explained in above "What does work"
Best, of course, would be to fix Geany...

[Edit] Corrected Geany version

Last edited by MochiMoppel on Thu Jun 08, 2023 1:03 pm, edited 2 times in total.
User avatar
Grey
Posts: 2052
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 77 times
Been thanked: 387 times

Re: Geany 1.39 fails to paste Primary selection

Post by Grey »

MochiMoppel wrote: Thu Jun 08, 2023 10:06 am

The version used in BW64 is
Geany 1.39
"Sulamar"

Best, of course, would be to fix Geany...

Hi. And where does version 1.39 come from? The official website of the program still (for a long time) offers version 1.38, on Github too. Sulamar is the codename for 1.38, not 39.
Is this a version created specifically for Bookworm or is it just compiled from the Git and therefore there is confusion in the About window?

Different devices. Different approach.

User avatar
MochiMoppel
Posts: 1294
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 480 times

Re: Geany 1.38 fails to paste Primary selection

Post by MochiMoppel »

Grey wrote: Thu Jun 08, 2023 11:23 am

Hi. And where does version 1.39 come from?

Straight from my volatile short-term memory. Wasn't able to copy it from the About dialog. I'm getting old :oops: . Thanks for letting me know.

User avatar
Grey
Posts: 2052
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 77 times
Been thanked: 387 times

Re: Geany 1.38 fails to paste Primary selection

Post by Grey »

MochiMoppel wrote: Thu Jun 08, 2023 10:06 am

Best, of course, would be to fix Geany...

I don't know if anyone will do anything. In general, it seems that all the work on Geany, if not curtailed, has been sluggish for a year. And some plugins generally stand still.

Different devices. Different approach.

Post Reply

Return to “BookwormPup”