Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Whisperfish - Signal on Sailfish OS Whisperfish - Signal on Sailfish OS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 234
    • Issues 234
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • WhisperfishWhisperfish
  • Whisperfish - Signal on Sailfish OSWhisperfish - Signal on Sailfish OS
  • Merge requests
  • !115

Simple daemon

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Gabriel Margiani requested to merge gamarg/whisperfish:simple-daemon into master Feb 12, 2021
  • Overview 6
  • Commits 17
  • Pipelines 13
  • Changes 21

Closes #3 (closed)

The Background feature is implemented by keeping the app (including the qml engine) running, when all windows are closed. This allows us to handle dbus and notification events in qml.

An autostart option is added via a systemd user service. Autostart and background mode are fully separate - so it is possible to just start the app at boot without keeping it in the background. After autostart, the app will only be hidden if background-mode is enabled and storage encryption is disabled.

The related feature and config-option can be disabled using the "harbour" feature flag (except for dbus-single-instance management, which we might need for custom url handlers as well).

To keep the systemd service out of the rpm if "harbour" is requested, build.rs contains some conditional copying and filtering of the rpm .spec file. This might be overkill, since the captcha locks us out of harbour for the foreseeable future, but on the other hand this provides infrastructure that could be easily adjusted to other non-harbour features like a share system.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: simple-daemon