Import wayland vars to systemd & dbus on hyprland start

This commit is contained in:
ItsDrike 2024-06-23 14:53:29 +02:00
parent 12ae728903
commit a0b525dc16
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -1,8 +1,8 @@
{
{pkgs, ...}: {
wayland.windowManager.hyprland.settings = {
exec-once = [
# TODO: Add this (probably only vesktop)
"${pkgs.systemd}/bin/systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
"${pkgs.systemd}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP"
];
};
}