mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 11:45:58 +01:00
nix: fix wallpaper location (#334)
This commit is contained in:
parent
8482063157
commit
c8c5e0b90a
2 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,11 @@ stdenv.mkDerivation {
|
||||||
./meson-build.patch
|
./meson-build.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Fix hardcoded paths to /usr installation
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "s#/usr#$out#" src/render/OpenGL.cpp
|
||||||
|
'';
|
||||||
|
|
||||||
passthru.providedSessions = ["hyprland"];
|
passthru.providedSessions = ["hyprland"];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -926,6 +926,9 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(SMonitor* pMonitor) {
|
||||||
|
|
||||||
Debug::log(LOG, "Allocated texture for BGTex");
|
Debug::log(LOG, "Allocated texture for BGTex");
|
||||||
|
|
||||||
|
// TODO: use relative paths to the installation
|
||||||
|
// or configure the paths at build time
|
||||||
|
|
||||||
// check if wallpapers exist
|
// check if wallpapers exist
|
||||||
if (!std::filesystem::exists("/usr/share/hyprland/wall_8K.png"))
|
if (!std::filesystem::exists("/usr/share/hyprland/wall_8K.png"))
|
||||||
return; // the texture will be empty, oh well. We'll clear with a solid color anyways.
|
return; // the texture will be empty, oh well. We'll clear with a solid color anyways.
|
||||||
|
|
Loading…
Reference in a new issue