Skip to content

feat(notifications): add Linux notify-send fallback for OS notifications - #721

Merged
haiphucnguyen merged 1 commit into
mainfrom
feature/improve-os-notification
Sep 17, 2026
Merged

haiphucnguyen merged 1 commit into
mainfrom
feature/improve-os-notification

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

  • Use notify-send to emit notifications on Linux, with a SystemTray fallback when unavailable.
  • Remove redundant check that suppressed notifications when the app is focused and the active session is visible.
  • Import Platform utility for platform‑specific handling.

Related Issue(s)

#714

Type of Change

  • [ X] 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- Use `notify-send` to emit notifications on Linux, with a SystemTray fallback when unavailable.
- Remove redundant check that suppressed notifications when the app is focused and the active session is visible.
- Import Platform utility for platform‑specific handling.
Copilot AI lite review requested due to automatic review settings September 17, 2026 06:10
@haiphucnguyen
haiphucnguyen merged commit dea3f11 into main Sep 17, 2026
11 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improve-os-notification branch September 17, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Invoke the SystemTray fallback when notify-send exits unsuccessfully.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds Linux notify-send support with a SystemTray fallback and removes redundant notification filtering.

Changes:

  • Routes Linux notifications through notify-send.
  • Uses platform detection for Linux handling.
  • Removes focused-session notification suppression.
File summaries
File Summary
desktop/src/main/kotlin/io/askimo/desktop/notifications/AppNotifier.kt Adds Linux notification routing; fallback must handle non-zero notify-send exit status.
desktop/src/main/kotlin/io/askimo/desktop/Main.kt Removes redundant active-session notification filtering.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +67 to +69
ProcessBuilder("notify-send", "--app-name=Askimo", title, message)
.redirectErrorStream(true)
.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants