platform_util.h 568 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2018 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef BRIGHTRAY_COMMON_PLATFORM_UTIL_H_
  5. #define BRIGHTRAY_COMMON_PLATFORM_UTIL_H_
  6. #include <string>
  7. namespace brightray {
  8. namespace platform_util {
  9. #if defined(OS_LINUX)
  10. // Returns a success flag.
  11. // Unlike libgtkui, does *not* use "chromium-browser.desktop" as a fallback.
  12. bool GetDesktopName(std::string* setme);
  13. #endif
  14. } // namespace platform_util
  15. } // namespace brightray
  16. #endif // BRIGHTRAY_COMMON_PLATFORM_UTIL_H_