fix: Hyprland socket address update
This commit is contained in:
parent
301b57ec06
commit
133b8f59fb
|
@ -113,7 +113,9 @@ def detect():
|
|||
Main entry point, detects the type of compositor used
|
||||
"""
|
||||
if signature := os.environ.get("HYPRLAND_INSTANCE_SIGNATURE", None):
|
||||
socket_addr = f"/tmp/hypr/{signature}/.socket2.sock"
|
||||
# See https://wiki.hyprland.org/IPC/
|
||||
xdg_runtime_dir = os.environ["XDG_RUNTIME_DIR"]
|
||||
socket_addr = f"/{xdg_runtime_dir}/hypr/{signature}/.socket2.sock"
|
||||
return hypr_listen(socket_addr)
|
||||
if signature := os.environ.get("SWAYSOCK", None):
|
||||
return sway_listen()
|
||||
|
|
Loading…
Reference in New Issue