[Libreoffice-bugs] [Bug 142176] New: No prompt when there's unsaved documents during logout/restart/shutdown
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun May 9 00:14:47 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=142176
Bug ID: 142176
Summary: No prompt when there's unsaved documents during
logout/restart/shutdown
Product: LibreOffice
Version: 6.4.7.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: erenseymen at gmail.com
Description:
Solution:
Gnome folks say applications should subscribe to Gnome session manager's D-Bus
interface to be able to receive "session close" signal and then act
accordingly.
https://discourse.gnome.org/t/can-ubuntu-prompt-me-to-save-unsaved-documents-during-logout-restart-shutdown/6393
For GTK applications, if "GtkApplication" is used, this is automatic. As Gnome
folks say, there's no generic session management across DEs, and other DEs have
their own implementations for session managing. I'm guessing, using
"GtkApplication" should solve the issue for GTK-based DEs. KDE (and other DEs)
needs separate coverage here. (QT-based DEs may have a common solution for
this. Don't know.)
Steps to Reproduce:
LibreOffice 6.4.7.2
OS: Ubuntu 20.04 Gnome 3.36.8
Setup:
* Autosave is set to 10 minutes (default)
https://i.imgur.com/7CpvjQ7.png
Steps:
1) Open Writer and write something
2) Logout from Gnome session
>> There's no prompt that there are unsaved changes. See Gedit's prompt: https://i.imgur.com/Jpv0O94.png
3) Login to Gnome
4) Open Writer
>> Writer gives the option to recover file
5) Accept Writer's recovering option
Actual Results:
>> File is empty. Data loss. *FAIL*
Expected Results:
Expected: No data loss.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
I think the solution can be implemented in 2 ways.
WAY1:
1) Open Writer and write something
2) Logout from Gnome session
>> LibreOffice gets "session close" signal from DE.
>> LibreOffice prompts the user about unsaved changes as Gedit can do.
3) User handles the rest.
>> No data loss. *SUCCESS*
WAY2:
1) Open Writer and write something
2) Logout from Gnome session
>> LibreOffice gets "session close" signal from DE. LibreOffice saves session. (autosave)
3) Login to Gnome
4) Open Writer
>> Writer gives the option to recover file
5) Accept Writer's recovering option
>> File is recovered. *SUCCESS*
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210509/e3d06fe1/attachment.htm>
More information about the Libreoffice-bugs
mailing list