* added the Unlicense as valid in misc/share/REGISTER
[t2sde.git] / package / wayland / hyprpaper / hotfix-xdg-runtimedir.patch
blobb3dc7e16324194dd3b4b86518781eb3a6711d074
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/hyprpaper/hotfix-xdg-runtimedir.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- hyprpaper-0.7.0/src/ipc/Socket.cpp.vanilla 2024-06-25 00:35:32.400312222 +0200
15 +++ hyprpaper-0.7.0/src/ipc/Socket.cpp 2024-06-25 00:40:20.498321014 +0200
16 @@ -27,7 +27,7 @@
17 const auto HISenv = getenv("HYPRLAND_INSTANCE_SIGNATURE");
18 const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid);
20 - const auto USERDIR = "/run/user/" + USERID + "/hypr/";
21 + const std::string USERDIR = std::string(getenv("XDG_RUNTIME_DIR")) + "/hypr/";
23 std::string socketPath = HISenv ? USERDIR + std::string(HISenv) + "/.hyprpaper.sock" : USERDIR + ".hyprpaper.sock";