Adjusted workflow.
This commit is contained in:
22
src/system/System_LNX.cpp
Normal file
22
src/system/System_LNX.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "ehs/system/System_LNX.h"
|
||||
#include "ehs/system/Thread.h"
|
||||
#include "ehs/Log.h"
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
UInt_32 XDG_Thread(void* args)
|
||||
{
|
||||
Str_8* uri = (Str_8*)args;
|
||||
|
||||
system("xdg-open \"" + *uri + "\"");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void System::OpenURI(const Str_8& uri)
|
||||
{
|
||||
Thread xdg;
|
||||
xdg.Start(XDG_Thread, (void*)&uri);
|
||||
xdg.Detach();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user