desktop: Implement a desktop::open_object_is_supported() function

This commit is contained in:
Ignacio R. Morelle 2014-02-12 03:30:44 -03:00
parent 1ba45ce69a
commit ba49a6d8b8
2 changed files with 12 additions and 0 deletions

View file

@ -39,6 +39,15 @@ static lg::log_domain log_desktop("desktop");
namespace desktop {
bool open_object_is_supported()
{
#if defined(_X11) || defined(__APPLE__) || defined(_WIN32)
return true;
#else
return false;
#endif
}
bool open_object(const std::string& path_or_url)
{
#if defined(_X11) || defined(__APPLE__)

View file

@ -50,6 +50,9 @@ namespace desktop {
*/
bool open_object(const std::string& path_or_url);
/** Returns whether open_object() is supported/implemented for the current platform. */
bool open_object_is_supported();
}
#endif