Skip to content

[BEEEP/PM-8492] Add autostart for flatpak - #12016

Merged
quexten merged 5 commits into
mainfrom
km/beeep/flatpak-autostart
May 25, 2025
Merged

quexten merged 5 commits into
mainfrom
km/beeep/flatpak-autostart

Conversation

@quexten

@quexten quexten commented Nov 15, 2024 •

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-8492

📔 Objective

Autostart on linux so far worked by manually writing a .desktop file. This is not possible on flatpak (and snap?). On flatpak, the background portal must be used. This PR adds the support for the background portal - https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.Background - using the https://docs.rs/ashpd/latest/ashpd/ crate, which abstracts all dbus interactions away from us.

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@quexten
quexten changed the base branch from main to km/beeep/biometrics-flatpak-test November 15, 2024 15:11
@quexten
quexten force-pushed the km/beeep/biometrics-flatpak-test branch from 21aec4d to 49e1b0c Compare November 15, 2024 15:17
@codecov

codecov Bot commented Nov 15, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.

Project coverage is 36.48%. Comparing base (a02c230) to head (92e4f83).
Report is 48 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/desktop/src/main/messaging.main.ts 0.00% 13 Missing ⚠️
apps/desktop/desktop_native/napi/src/lib.rs 0.00% 6 Missing ⚠️
...desktop_native/core/src/autostart/unimplemented.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12016      +/-   ##
==========================================
- Coverage   36.50%   36.48%   -0.02%     
==========================================
  Files        3200     3201       +1     
  Lines       92679    92693      +14     
  Branches    16694    16696       +2     
==========================================
- Hits        33829    33822       -7     
- Misses      56396    56417      +21     
  Partials     2454     2454              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Nov 15, 2024 •

Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Details – 9963ff8d-2020-4e00-b6e2-48983e71e2eb

Great job, no security vulnerabilities found in this Pull Request

@quexten
quexten force-pushed the km/beeep/flatpak-autostart branch from dad3139 to d5af909 Compare November 15, 2024 15:49
@quexten
quexten changed the base branch from km/beeep/biometrics-flatpak-test to main November 15, 2024 15:49
@quexten
quexten force-pushed the km/beeep/flatpak-autostart branch from d5af909 to e6d02ef Compare November 15, 2024 15:50
@quexten
quexten marked this pull request as ready for review November 15, 2024 17:31
@quexten
quexten requested a review from a team as a code owner November 15, 2024 17:31
@quexten
quexten requested a review from justindbaur November 15, 2024 17:31
@quexten quexten changed the title [BEEEP] Add autostart for flatpak [BEEEP/PM-8492] Add autostart for flatpak Nov 15, 2024
@quexten
quexten marked this pull request as draft January 15, 2025 13:32
@quexten quexten linked an issue Jan 19, 2025 that may be closed by this pull request
1 task done
@quexten quexten closed this Jan 22, 2025
@quexten quexten reopened this Jan 22, 2025
@quexten
quexten removed the request for review from justindbaur January 22, 2025 23:01
@quexten
quexten force-pushed the km/beeep/flatpak-autostart branch from 5f767bd to 15aef01 Compare May 1, 2025 23:51
@quexten
quexten force-pushed the km/beeep/flatpak-autostart branch from 15aef01 to 6fb33d4 Compare May 1, 2025 23:53
@quexten
quexten marked this pull request as ready for review May 2, 2025 09:17

This comment was marked as spam.

anyhow = "=1.0.94"
arboard = { version = "=3.4.1", default-features = false }
argon2 = "=0.5.3"
ashpd = "=0.11.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love the reference for the crate name 😁

@sonarqubecloud

Copy link
Copy Markdown

@quexten
quexten requested a review from tangowithfoxtrot May 19, 2025 04:03
@quexten
quexten merged commit 04ed114 into main May 25, 2025
@quexten
quexten deleted the km/beeep/flatpak-autostart branch May 25, 2025 22:30
dan-livefront pushed a commit that referenced this pull request Jun 2, 2025
* Add autostart for flatpak via ashpd

* Fix clippy errors

* Cargo fmt

* Fix clippy
@quexten quexten added the BEEEP BEEEEP Projects label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BEEEP BEEEEP Projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fedora KDE] "Start automatically on login" does not work on Flatpak install

3 participants