Bug 443648 - "Load previous session" and "Save session when Krita closes" requires the user to manually create a session before showing any effect
Summary: "Load previous session" and "Save session when Krita closes" requires the use...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: 4.4.7
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-12 22:17 UTC by tomtomtomreportingin
Modified: 2024-08-22 16:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomtomtomreportingin 2021-10-12 22:17:48 UTC
SUMMARY
The options "Load previous session" and "Save when Krita closes" options do nothing if the user has no sessions created by using the session manager.

Not a regression of Krita 5.

STEPS TO REPRODUCE
1. Without any sessions,  enable those options in General -> Misc.
2. With an open saved document, close Krita and restart.

OBSERVED RESULT
A default Krita window is opened to the welcome screen.

EXPECTED RESULT
There should be some default session resource that the program uses/creates in such a case.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.12.11 (Appimage)
Comment 1 tomtomtomreportingin 2021-10-13 01:41:24 UTC
Actually only observed in Krita 4 so far as https://bugs.kde.org/show_bug.cgi?id=443652 technically makes observing this bug in Krita 5 impossible. I guess I got confused while testing various versions.
Comment 2 Tiar 2022-01-06 19:51:39 UTC
Would this behaviour be the expected one:
1. Krita closes with "Save session on close" enabled, but there is no session in use.
2. Krita creates a new/default session file in the resources folder and saves its name to the configuration.
3. Next time when Krita opens, it's the same session being used if "Load previous session" is enabled.

I have a few questions:
1. Should it always be the same session file (so overwriting over the previous session file when you repeat steps 1-3 multiple times)? Or a new one created every time the user closes Krita? (That could create way too many of them, tbh, I think the first option might be more universally useful).
2. If yes, what name should it be? I guess something that the user wouldn't use themselves? Something like "AutosavedSession.ksn"?
3. If no, I guess something like "AutosavedSession_[date-and-time].ksn"?
Note that it will appear in the Sessions dialog.
Comment 3 Bug Janitor Service 2022-01-21 04:37:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-02-05 04:38:00 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 tomtomtomreportingin 2022-08-23 15:10:56 UTC
Sorry for the late response.

The expected behavior you describe sounds fine. 

There should only be one autosaved session with some name like AutosavedSession.ksn. It doesn't really make sense for autosaved sessions to make use of backups, unless there were like only one or two backups.
Comment 6 wolthera 2023-01-26 13:09:28 UTC
Hey.

I can confirm with the Krita Version: 5.2.0-prealpha (git 5c98a72) Appimage with Qt 5.15.7
Comment 7 Dmitry Kazakov 2024-08-22 16:39:40 UTC
Remove triaged keyword from CONFIRMED bugs