Support snoozing a started application
It would be nice to be able to snooze an application launched by the alarm. This would be possible for the stock media players by creating a table of 2 commands for each app: One for starting and one for stopping.
There has been some work on creating a common D-Bus interface to control media players, but no such system exists yet. See http://
- Not started
- Needs approval
- Series goal:
- Milestone target:
- Started by
- Completed by
This can be implemented as follows:
- Add an extra gconf key 'command_stop' which should contain a command which 'undoes' the alarm command.
- By default, if there is no 'command_stop' available, we could store the pid of the command we executed and try stopping/killing it on snooze. This wouldn't have any effect on most media player commands as they exit as soon as they've told the real media player process to start playback.
- This must be added to the Edit alarm dialog without making it overly complicated for the user. The 'command_stop' text entry could for example appear if snooze is enabled, and hidden otherwise.