Bug 427722 - Kalarm disabling active alarms calendar on logout when minimized to tray
Summary: Kalarm disabling active alarms calendar on logout when minimized to tray
Status: RESOLVED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: 3.0.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
: 428049 428172 428178 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-14 20:55 UTC by David Rosenstrauch
Modified: 2020-10-25 17:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.08.3


Attachments
Kalarm starting up with Active Alarms calendar disabled (27.11 KB, image/png)
2020-10-14 20:55 UTC, David Rosenstrauch
Details
Kalarm running with Active Alarms calendar enabled (expected) (37.87 KB, image/png)
2020-10-14 20:56 UTC, David Rosenstrauch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Rosenstrauch 2020-10-14 20:55:13 UTC
Created attachment 132365 [details]
Kalarm starting up with Active Alarms calendar disabled

SUMMARY

I've started noticing an issue with Kalarm recently.  (Looks like it may have started when ArchLinux upgraded to KDE 20.08.2)  When I log out while Kalarm is minimized to the system tray (thereby forcing Kalarm to close) the next time I log in the "active alarms" calendar is disabled/unchecked.  This does not happen when I either a) quit Kalarm manually, or b) when I log out with Kalarm *not* minimized to the tray.

This is becoming a bit of a nuisance, since when the active alarms are disabled Kalarm doesn't pop up any alarm windows notifying me about appointments.  As I normally start up kalarm minimized to the tray (and generally keep it minimized), I'm running into this problem frequently.


STEPS TO REPRODUCE
1. Start Kalarm, minimize it to the tray.
2. Log out.  (Of the XFCE desktop, in my case.)
3. Log back in, and start Kalarm again.

OBSERVED RESULT
Kalarm starts with the Active Alarms calendar disabled/unchecked.  (I can also see in the ~/.config/kalarmresources file that it contains "Enabled=".)

EXPECTED RESULT
Kalarm should start with the Active Alarms calendar enabled and active.  (And ~/.config/kalarmresources file should contain "Enabled=Active".)

This happens both on my main account, as well as on a brand new test account that I set up just for this purpose.  (So it's not an issue related to my user configuration.)


SOFTWARE/OS VERSIONS
Kalarm version:  3.0.2
Windows:  n/a
macOS:  n/a
***************************************************************************
*** NOTE:  I AM USING Kalarm WITH THE XFCE DESKTOP ENVIRONMENT, NOT KDE ***
***************************************************************************
Linux/KDE Plasma:  Version 3.0.2 (KDE Apps 20.08.2)
KDE Plasma Version:  5.20.0
KDE Frameworks Version:  ?
Qt Version:  5.15.1

ADDITIONAL INFORMATION
Comment 1 David Rosenstrauch 2020-10-14 20:56:57 UTC
Created attachment 132366 [details]
Kalarm running with Active Alarms calendar enabled (expected)
Comment 2 David Jarvie 2020-10-14 23:54:03 UTC
Thank you for providing sufficient details on how to reproduce this bug, which has helped me to confirm it. Given its importance, it should definitely be fixed in time for KDE apps release 20.08.3.
Comment 3 David Jarvie 2020-10-15 19:39:21 UTC
Please note that ALL calendars (active, archived and template) are disabled by this bug.

Now fixed by commit 23eae65d7150bbc726d17092eacf2ad1f1d80f10. KAlarm version 3.0.3 will contain the fix, and will be in the KDE apps release 20.08.3.
Comment 4 David Rosenstrauch 2020-10-15 20:34:56 UTC
Thanks for the quick fix!  Any idea when they're planning to release 20.08.3?
Comment 5 Christoph Feck 2020-10-15 20:53:05 UTC
Please check https://community.kde.org/Schedules
Comment 6 David Jarvie 2020-10-21 09:16:16 UTC
*** Bug 428049 has been marked as a duplicate of this bug. ***
Comment 7 David Jarvie 2020-10-24 11:22:50 UTC
*** Bug 428172 has been marked as a duplicate of this bug. ***
Comment 8 David Jarvie 2020-10-24 13:35:40 UTC
*** Bug 428178 has been marked as a duplicate of this bug. ***
Comment 9 David Jarvie 2020-10-24 13:44:22 UTC
For clarity, this bug will occur whenever KAlarm quits in a controlled way, i.e. at logout or using File -> Quit. It doesn't matter whether KAlarm is minimised to the tray. I'm amending the description accordingly, in the hope that others encountering the bug won't waste their time re-reporting it.
Comment 10 David Rosenstrauch 2020-10-24 23:18:32 UTC
FWIW, I just tested this out, and I don't see the bug occurring under the same exit conditions as you're reporting.  I see the following:

File -> Quit:  no issue
System Tray Icon -> Quit:  no issue
Logout, when Kalarm *not minimized* to tray:  no issue
Logout, when Kalarm minimized to try:  triggers bug; no alarms active on next start
Comment 11 David Jarvie 2020-10-25 17:16:28 UTC
Yes, you are right. I based my comment on what I thought the program code did, but it wasn't quite as broken as I thought.