From 3c0700c6b01585e11e9a7977df58aada414a17bd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 30 Sep 2023 19:09:52 -0700 Subject: [PATCH] os: launchFromDesktop works even if the artifact is a lib Fixes #598 --- src/os/desktop.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/os/desktop.zig b/src/os/desktop.zig index da78f454b..f7717cf65 100644 --- a/src/os/desktop.zig +++ b/src/os/desktop.zig @@ -16,8 +16,6 @@ const c = @cImport({ /// /// For other platforms and app runtimes, this returns false. pub fn launchedFromDesktop() bool { - if (comptime build_config.artifact != .exe) return false; - return switch (builtin.os.tag) { // macOS apps launched from finder or `open` always have the init // process as their parent.