Implemented ArchHooks_Unix::GoToURL

This commit is contained in:
phantom
2013-06-29 18:47:16 +02:00
parent eb301edc44
commit 6c59100c31
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -198,6 +198,13 @@ void ArchHooks_Unix::Init()
#endif
}
bool ArchHooks_Unix::GoToURL( RString sUrl )
{
RString command = "xdg-open " + sUrl;
int result = system( command.c_str() );
return result != -1 && WEXITSTATUS( result ) == 0;
}
#ifndef _CS_GNU_LIBC_VERSION
#define _CS_GNU_LIBC_VERSION 2
#endif
+2
View File
@@ -15,6 +15,8 @@ public:
void MountInitialFilesystems( const RString &sDirOfExecutable );
float GetDisplayAspectRatio() { return 4.0f/3; }
bool GoToURL( RString sUrl );
static clockid_t GetClock();
};