mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
@ -16,8 +16,6 @@ const c = @cImport({
|
|||||||
///
|
///
|
||||||
/// For other platforms and app runtimes, this returns false.
|
/// For other platforms and app runtimes, this returns false.
|
||||||
pub fn launchedFromDesktop() bool {
|
pub fn launchedFromDesktop() bool {
|
||||||
if (comptime build_config.artifact != .exe) return false;
|
|
||||||
|
|
||||||
return switch (builtin.os.tag) {
|
return switch (builtin.os.tag) {
|
||||||
// macOS apps launched from finder or `open` always have the init
|
// macOS apps launched from finder or `open` always have the init
|
||||||
// process as their parent.
|
// process as their parent.
|
||||||
|
Reference in New Issue
Block a user