mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-11-16 22:25:59 +01:00
Support symlinks (#78)
This commit is contained in:
parent
ac5f7b038d
commit
5d896893de
1 changed files with 8 additions and 2 deletions
|
@ -121,7 +121,13 @@ void CHyprpaper::preloadAllWallpapersFromConfig() {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
m_mWallpaperTargets[wp] = CWallpaperTarget();
|
m_mWallpaperTargets[wp] = CWallpaperTarget();
|
||||||
m_mWallpaperTargets[wp].create(wp);
|
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();
|
g_pConfigManager->m_dRequestedPreloads.clear();
|
||||||
|
|
Loading…
Reference in a new issue