Bug 469757 - kAlarm does not function if icon not present in system tray
Summary: kAlarm does not function if icon not present in system tray
Status: RESOLVED INTENTIONAL
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: 3.5.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-14 17:37 UTC by bizdeal23
Modified: 2024-03-06 23:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bizdeal23 2023-05-14 17:37:42 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Create a scheduled action/event
2. Remove 'Show in system tray'
3. 

OBSERVED RESULT
Tasks halt when kalarm is not present in the system tray

EXPECTED RESULT
Tasks should be executed whether or not a tray icon is visible

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro 22.1
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Jarvie 2023-06-01 21:21:06 UTC
Is KAlarm still running after removing it from the system tray?

Bear in mind that if "Show in system tray" is selected, closing the main window will leave KAlarm running (in the system tray), but if "Show in system tray" is NOT selected, closing the main window will cause KAlarm to quit. So to keep using it while not showing it in the system tray, you have to leave it running in the same way as other applications, so if you're using a task manager in the panel, it will show there.
Comment 2 bizdeal23 2023-06-02 02:56:36 UTC
(In reply to David Jarvie from comment #1)
> Is KAlarm still running after removing it from the system tray?
> 
> Bear in mind that if "Show in system tray" is selected, closing the main
> window will leave KAlarm running (in the system tray), but if "Show in
> system tray" is NOT selected, closing the main window will cause KAlarm to
> quit. So to keep using it while not showing it in the system tray, you have
> to leave it running in the same way as other applications, so if you're
> using a task manager in the panel, it will show there.

What you mention is interesting because after closing both the system tray AND the main application, I still see a process in Task Manager
called "kalarm --tray". 

Regardless, it appears that the feature I was hoping for is not supported. I was hoping to eventually kAlarm could become a background process
Comment 3 David Jarvie 2023-06-05 14:34:22 UTC
On my system, KAlarm quits when the main window is closed in these circumstances (as it is supposed to do). Strange...

KAlarm is not designed to run as a daemon, so when the application is closed, there is no background task to trigger alarms. If that is what you require, you will need to look for an alternative to KAlarm.