fix(single-instance): append version at the end

This commit is contained in:
Fabian-Lars
2026-02-05 18:08:35 +01:00
committed by GitHub
parent 8374e997b8
commit 4f53e36a50
@@ -35,13 +35,13 @@ pub fn init<R: Runtime>(
plugin::Builder::new("single-instance")
.setup(move |app, _api| {
let mut dbus_name = dbus_id.unwrap_or_else(|| app.config().identifier.clone());
dbus_name.push_str(".SingleInstance");
#[cfg(feature = "semver")]
{
dbus_name.push('_');
dbus_name.push_str(semver_compat_string(&app.package_info().version).as_str());
}
dbus_name.push_str(".SingleInstance");
let mut dbus_path = dbus_name.replace('.', "/").replace('-', "_");
if !dbus_path.starts_with('/') {