Skip to content

Commit

Permalink
Fix idle notification Flatpak bug - #154
Browse files Browse the repository at this point in the history
  • Loading branch information
rickykresslein committed Oct 14, 2024
1 parent 796fc9a commit 11c4446
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/linux/flatpak/io.unobserved.furtherance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ finish-args:
- --socket=fallback-x11
- --device=dri
- --socket=wayland
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.gnome.Mutter.IdleMonitor
- --filesystem=xdg-documents
build-options:
Expand Down
7 changes: 5 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4585,13 +4585,16 @@ fn show_notification(notification_type: NotificationType, localization: &Localiz
}
}

Notification::new()
match Notification::new()
.summary(&heading)
.body(&details)
.appname("Furtherance")
.timeout(Timeout::Milliseconds(6000))
.show()
.unwrap();
{
Ok(_) => {}
Err(e) => eprintln!("Failed to show notification: {e}"),
}
}

fn settings_heading<'a>(heading: String) -> Column<'a, Message, Theme, Renderer> {
Expand Down

0 comments on commit 11c4446

Please sign in to comment.