IssueRaiser

Add support for sending desktop notifications

**Describe the project you are working on:** The Godot editor :slightly_smiling_face: **Describe the problem or limitation you are having in your project:** It's currently impossible to send desktop notifications from a Godot project (or the editor) in a cross-platform manner. It's possible to run `notify-send` using `OS.execute()`, but that only works on Linux/BSD. There are many use cases for sending desktop notifications in projects: - Alert the player when a new round starts if the player isn't focused on the game window (usually because they minimized the window, or they alt-tabbed out of it). - Display chat messages while the player has alt-tabbed out from a game. - Non-game applications can probably find creative ways to use them as well. We could also benefit from integrating them in the Godot editor: - If the editor window isn't focused, optionally display a notification when assets have finished reimporting. - If the editor window isn't focused, display a notification when an asset or export templates have finished downloading. - If the editor window isn't focused, display a notification when LightmapGI or VoxelGI is done baking. **Describe the feature / enhancement and how it helps to overcome the problem or limitation:** There could be a method in the OS singleton to send a desktop notification: ```gdscript OS.send_notification(title: String, message: String, custom_icon: Image = null, duration: int = -1) ``` The custom icon is optional. If it's `null`

Posted by Calinou on Aug 8, 2020, 1:49 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

support (Sysadmin)

Add support for sending desktop notifications

CalinouAug 8, 2020, 1:49 PM

**Describe the project you are working on:** The Godot editor :slightly_smiling_face: **Describe the problem or limitation you are having in your project:** It's currently impossible to send desktop notifications from a Godot project (or the editor) in a cross-platform manner. It's possible to run `notify-send` using `OS.execute()`, but that only works on Linux/BSD. There are many use cases for sending desktop notifications in projects: - Alert the player when a new round starts if the player isn't focused on the game window (usually because they minimized the window, or they alt-tabbed out of it). - Display chat messages while the player has alt-tabbed out from a game. - Non-game applications can probably find creative ways to use them as well. We could also benefit from integrating them in the Godot editor: - If the editor window isn't focused, optionally display a notification when assets have finished reimporting. - If the editor window isn't focused, display a notification when an asset or export templates have finished downloading. - If the editor window isn't focused, display a notification when LightmapGI or VoxelGI is done baking. **Describe the feature / enhancement and how it helps to overcome the problem or limitation:** There could be a method in the OS singleton to send a desktop notification: ```gdscript OS.send_notification(title: String, message: String, custom_icon: Image = null, duration: int = -1) ``` The custom icon is optional. If it's `null`

Comments (0)

No comments yet. Start the discussion.

Comment on this issue