22 lines
328 B
C++
22 lines
328 B
C++
#include "system/System_LNX.h"
|
|
#include "system/Thread.h"
|
|
#include "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();
|
|
}
|
|
} |