Skip to content

Conversation

MorpheusXAUT
Copy link
Contributor

Fix D-Bus name replacement logic on Linux to prevent multiple instances from acquiring the same well-known name.

This patch updates the zbus dependency to the latest compatible version (^5.9) and explicitly sets RequestNameFlags to ensure a second instance fails to acquire the D-Bus name when another one is already running.

This resolves an issue with previous versions of zbus resulting in deadlocks in connection name request tasks (see dbus2/zbus#1431). The new default behavior of the library allows name replacement (by setting ReplaceExisting and DoNotQueue flags, so we're explicitly disabling this behavior to ensure only a single instance can be spawned.

update zbus crate to latest version
@MorpheusXAUT MorpheusXAUT requested a review from a team as a code owner July 20, 2025 20:01
Copy link
Contributor

Package Changes Through 14ed464

There are 9 changes which include barcode-scanner with minor, barcode-scanner-js with minor, single-instance with patch, upload with patch, upload-js with patch, window-state with minor, window-state-js with minor, fs with patch, fs-js with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.30 2.0.31
api-example-js 2.0.26 2.0.27
barcode-scanner 2.3.0 2.4.0
barcode-scanner-js 2.3.0 2.4.0
fs 2.4.0 2.4.1
fs-js 2.4.0 2.4.1
dialog 2.3.0 2.3.1
dialog-js 2.3.0 2.3.1
http 2.5.0 2.5.1
http-js 2.5.0 2.5.1
persisted-scope 2.3.0 2.3.1
single-instance 2.3.0 2.3.1
upload 2.3.0 2.3.1
upload-js 2.3.0 2.3.1
window-state 2.3.0 2.4.0
window-state-js 2.3.0 2.4.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Copy link
Member

@FabianLars FabianLars left a comment

Choose a reason for hiding this comment

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

thx

@FabianLars FabianLars merged commit 6f34587 into tauri-apps:v2 Jul 20, 2025
147 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.

2 participants