os: launchFromDesktop works even if the artifact is a lib

Fixes #598
This commit is contained in:
Mitchell Hashimoto
2023-09-30 19:09:52 -07:00
parent 268259112b
commit 3c0700c6b0

View File

@ -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.