From 09fcf7bb42b877487c59caa9de3f2aeea22a4819 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 18 Oct 2024 15:43:26 -0500 Subject: [PATCH] hyprland: launch onlyoffice with xdg-desktop-portal flag Signed-off-by: Myned --- options/custom/desktops/hyprland/binds.nix | 2 +- options/custom/desktops/hyprland/rules.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/options/custom/desktops/hyprland/binds.nix b/options/custom/desktops/hyprland/binds.nix index 734dceb..f89ac4a 100644 --- a/options/custom/desktops/hyprland/binds.nix +++ b/options/custom/desktops/hyprland/binds.nix @@ -25,7 +25,7 @@ with lib; let networkmanager_dmenu = "${pkgs.networkmanager_dmenu}/bin/networkmanager_dmenu"; notify-send = "${pkgs.libnotify}/bin/notify-send"; obsidian = "${pkgs.obsidian}/bin/obsidian"; - onlyoffice = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors"; + onlyoffice = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors --xdg-desktop-portal"; pkill = "${pkgs.procps}/bin/pkill"; playerctl = "${pkgs.playerctl}/bin/playerctl"; rofi-rbw = "${pkgs.rofi-rbw}/bin/rofi-rbw"; diff --git a/options/custom/desktops/hyprland/rules.nix b/options/custom/desktops/hyprland/rules.nix index 7c70539..a767b3f 100644 --- a/options/custom/desktops/hyprland/rules.nix +++ b/options/custom/desktops/hyprland/rules.nix @@ -11,7 +11,7 @@ with lib; let kitty = "${config.home-manager.users.${config.custom.username}.programs.kitty.package}/bin/kitty"; launch = config.home-manager.users.${config.custom.username}.home.file.".local/bin/launch".source; loupe = "${pkgs.loupe}/bin/loupe"; - onlyoffice = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors"; + onlyoffice = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors --xdg-desktop-portal"; pgrep = "${pkgs.procps}/bin/pgrep"; steam = "${config.programs.steam.package}/bin/steam"; virt-manager = "${pkgs.virt-manager}/bin/virt-manager"; @@ -33,7 +33,7 @@ in { "special:android, on-created-empty:${waydroid} app launch com.YoStarEN.Arknights" "special:music, on-created-empty:${youtube-music}" - "special:office, on-created-empty:[tile] ${onlyoffice}" + "special:office, on-created-empty:[tile] ${onlyoffice} --xdg-desktop-portal" "special:password, on-created-empty:${launch} --empty --tile --workspace special:password ${_1password}" "special:steam, on-created-empty:${steam}" "special:terminal, on-created-empty:${kitty}"