Skip to content

Feature: Desktop notifications for file operations#4

Merged
rossigee merged 3 commits into
masterfrom
feature/desktop-notifications
Apr 29, 2026
Merged

Feature: Desktop notifications for file operations#4
rossigee merged 3 commits into
masterfrom
feature/desktop-notifications

Conversation

@rossigee

Copy link
Copy Markdown
Owner

Description

Adds desktop notifications when bucketsyncd successfully uploads or downloads files.

Changes

  • New config option: enable_notifications (default: false)
  • Cross-platform notification support:
    • Linux: Uses notify-send
    • macOS: Uses osascript for system notifications
    • Windows: Uses PowerShell MessageBox
  • Notifications sent on:
    • S3/WebDAV upload success
    • MinIO download success
  • Updated example config with notifications enabled

Usage

Add to config.yaml:

enable_notifications: true

Testing

  • Requires notify-send on Linux (usually installed)
  • Requires osascript on macOS (built-in)
  • Requires PowerShell on Windows (built-in)

Screenshots

Example notification: "bucketsyncd - Uploaded statement.pdf to S3"

Closes #3

- Add enable_notifications config option
- Implement SendNotification function with cross-platform support
- Send notifications on successful uploads (S3/WebDAV) and downloads
- Update example config with notifications enabled

Supported platforms:
- Linux: notify-send
- macOS: osascript (display notification)
- Windows: PowerShell MessageBox
Comment thread notifications.go Fixed
Comment thread notifications.go Fixed
Comment thread notifications.go Fixed
- Update README with notifications feature description and usage
- Add unit tests for SendNotification function
- Document platform-specific requirements
- Suppress G204 warnings for intentional command execution in notifications
- Safe usage with hardcoded commands and sanitized input
@rossigee rossigee merged commit 23306d2 into master Apr 29, 2026
11 checks passed
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.

Feature Request: Desktop notifications for file uploads/downloads

2 participants