[TODO] fork on macos will nuke everything. use native apple macos api
This commit is contained in:
parent
831649233e
commit
0c09d62332
@ -1,21 +1,21 @@
|
||||
/***
|
||||
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||||
|
||||
File: Open.Linux.cpp
|
||||
File: Open.Unix.cpp
|
||||
Date: 2021-6-12
|
||||
Author: Reece
|
||||
***/
|
||||
#pragma once
|
||||
#include <RuntimeInternal.hpp>
|
||||
#include "Processes.hpp"
|
||||
#include "Open.Linux.hpp"
|
||||
#include "Open.Unix.hpp"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <Source/IO/FS/FS.hpp>
|
||||
|
||||
namespace Aurora::Processes
|
||||
{
|
||||
static void LinuxOpenAsync(const AuString &open)
|
||||
static void UnixOpenAsync(const AuString &open)
|
||||
{
|
||||
if (fork() == 0)
|
||||
{
|
||||
@ -26,11 +26,11 @@ namespace Aurora::Processes
|
||||
|
||||
AUKN_SYM void OpenUri(const AuString &uri)
|
||||
{
|
||||
LinuxOpenAsync(uri);
|
||||
UnixOpenAsync(uri);
|
||||
}
|
||||
|
||||
AUKN_SYM void OpenFile(const AuString &file)
|
||||
{
|
||||
LinuxOpenAsync(IO::FS::NormalizePathRet(file));
|
||||
UnixOpenAsync(IO::FS::NormalizePathRet(file));
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
/***
|
||||
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||||
|
||||
File: Open.Linux.hpp
|
||||
File: Open.Unix.hpp
|
||||
Date: 2021-6-12
|
||||
Author: Reece
|
||||
***/
|
Loading…
Reference in New Issue
Block a user