Repository navigation
Conversation
Port the application to Linux x64. Bluetooth discovery, connection state and advertisements go through BlueZ over D-Bus. Media control, autostart and quick connect have Linux implementations behind the existing platform interfaces. - Add the BlueZ D-Bus helper and the Linux Bluetooth, media, autostart and quick-connect backends. - Keep scanning while a device is bound, even when it is disconnected, and request a connection when the case lid opens (asynchronous Device1.Connect). - Show the window when the lid opens or when the pods leave the case with the lid open. The window follows the lid state alone. - Keep the animation video loaded while the window is hidden and replay it from the start on show, instead of reloading the file each time. - Add Linux platform tests and the desktop entry used by cmake --install. Tested on Ubuntu 24.04 with Qt 6.8.3, BlueZ and AirPods Pro. Shared code paths (scanner lifetime, lid popup) also run on Windows; that is not built or tested.
Packaging/Linux/make-bundle.sh builds a self-contained directory and tarball: the application, the Qt libraries and plugins it loads, a launcher and an install.sh that adds a menu entry for the current user. Packaging/Linux/make-deb.sh wraps a bundle into a .deb that installs under /opt/AirPodsDesktop, exposes /usr/bin/AirPodsDesktop and declares the system libraries the bundle loads as dependencies. Docs/Build.md describes the Linux prerequisites, the build and both packages.
Keep README.md, README-CN.md and README-TW.md aligned in credits, as AGENTS.md requires.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
AirPodsDesktop is Windows-only. This PR adds Linux x64 support so the same AirPods status, lid popup and battery display work on BlueZ-based desktops.
Behaviour changes
Device::Connect()is a no-op by default, so Windows still relies on the OS to connect.No settings, ABI or persisted data changed.
kFieldsAbiVersionis untouched.Packaging
Packaging/Linux/make-bundle.sh: a self-contained directory and tarball with the Qt libraries and plugins the application loads.Packaging/Linux/make-deb.sh: a.debthat installs under/opt, exposes/usr/bin/AirPodsDesktop, and declares the system libraries it needs.Docs/Build.md: Linux prerequisites, build steps and both packages.Testing
ctest: all 13 suites pass, including the newLinuxPlatformTests..debstarts with the French locale. The.debwas installed withsudo apt install ./<file>.debon the same Ubuntu 24.04 machine and the app runs from the menu.Not tested
.debdependency list comes from the Ubuntu 24.04 package names.Notes for review
Qt6::DBuson Linux only. BlueZ must be running at runtime.🤖 Generated with Claude Code