#1070117 focuswriter: Closes abruptly when user mistakenly tries to paste empty clipboard

Package:
focuswriter
Source:
focuswriter
Description:
Fullscreen distraction-free writing program
Submitter:
Diogo Oliveira
Date:
2024-04-30 13:00:06 UTC
Severity:
normal
#1070117#5
Date:
2024-04-30 12:56:44 UTC
From:
To:
Dear Maintainer,

Focuswriter closes abruptly and immediately every time I mistakenly try do past
something while having nothing to paste, without even prompting to save any
unsaved changes my doc has.

To reproduce the bug:

(a.) Open Focuswriter;

(b.) hit CTRL+V to try to paste something. Ensure you have nothing on clipboard
to be pasted or it will not activate the bug.

(c.) Focuswriter will close just immediately.

This bug happens in both Debian Stable (version 12 - codename Bookworm), with
Focuswriter being version 1.8.4.1 and Testing (13 - codename Trixie), with
Focuswriter being version 1.8.6.1, no matter if I'm using a 32-bit or 64-bit
kernel or the Window Manager/Desktop Environment I'm using (KDE, Mate, IceWM,
GNUStep, XFCE). I didn't try to reproduce the bug under other Linux distros or
under Windows.

(I know it's sort of dumb to try to paste an empty clipboard but it's a matter
of habit: I am a heavy user of keyboard shortcuts while writing, including
CTRL+C and CTRL+V, and many times I mistakenly try to paste something I still
didn't copy, so it's sort of common for me to suddenly try to paste and see
Focuswriter closing without even prompting to save my unsaved progress.)