Skip to content

Commit

Permalink
linux compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars authored Feb 28, 2024
1 parent 4139d67 commit 4dc4461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/single-instance/src/platform_impl/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ pub fn init<R: Runtime>(f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R> {
pub fn destroy<R: Runtime, M: Manager<R>>(manager: &M) {
if let Some(connection) = manager.try_state::<ConnectionHandle>() {
#[cfg(feature = "semver")]
let id = dbus_id(app.config(), app.package_info().version.clone());
let id = dbus_id(manager.config(), manager.package_info().version.clone());
#[cfg(not(feature = "semver"))]
let id = dbus_id(app.config());
let id = dbus_id(manager.config());

let dbus_name = format!("org.{id}.SingleInstance",);
let _ = connection.0.release_name(dbus_name);
Expand Down

0 comments on commit 4dc4461

Please sign in to comment.