add option for when filesystem still lives in the experimental namespace

This commit is contained in:
Lucas L. Treffenstädt
2018-11-02 20:59:41 +01:00
parent 00e7e87f55
commit 236be90c2f
5 changed files with 23 additions and 2 deletions

View File

@ -190,7 +190,11 @@ void waybar::modules::SNI::Item::updateImage()
if (!icon_name.empty()) {
try {
// Try to find icons specified by path and filename
#ifdef FILESYSTEM_EXPERIMENTAL
if (std::experimental::filesystem::exists(icon_name)) {
#else
if (std::filesystem::exists(icon_name)) {
#endif
auto pixbuf = Gdk::Pixbuf::create_from_file(icon_name);
if (pixbuf->gobj() != nullptr) {
// An icon specified by path and filename may be the wrong size for