Support symlinks (#78)

This commit is contained in:
GoatFoo 2023-07-22 18:28:08 +02:00 committed by GitHub
parent ac5f7b038d
commit 5d896893de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,9 +121,15 @@ void CHyprpaper::preloadAllWallpapersFromConfig() {
continue;
m_mWallpaperTargets[wp] = CWallpaperTarget();
if (std::filesystem::is_symlink(wp)) {
auto real_wp = std::filesystem::read_symlink(wp);
m_mWallpaperTargets[wp].create(real_wp);
} else {
m_mWallpaperTargets[wp].create(wp);
}
}
g_pConfigManager->m_dRequestedPreloads.clear();
}