Skip to content

Commit

Permalink
linux compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Feb 28, 2024
1 parent 4139d67 commit e8986e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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,12 @@ 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.app_handle().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 e8986e2

Please sign in to comment.