[screen-sharing] remove xdg-fix

This commit is contained in:
Felix Buehler 2021-06-07 14:36:20 +02:00
parent 17f579e79a
commit 2c63a65dc4
2 changed files with 0 additions and 23 deletions

View file

@ -4,7 +4,6 @@
remmina remmina
teamviewer teamviewer
]; ];
imports = [ ./xdg-portal.nix ];
services.pipewire.enable = true; services.pipewire.enable = true;

View file

@ -1,22 +0,0 @@
{ config, pkgs, ... }:
let
xdg-fix = pkgs.writeScriptBin "xdg-fix.sh" ''
#!${pkgs.bash}/bin/sh
${pkgs.systemd}/bin/systemctl --user stop xdg-desktop-portal
${pkgs.procps}/bin/pkill xdg-desktop-portal
${pkgs.procps}/bin/pkill xdg-desktop-portal-gtk
${pkgs.procps}/bin/pkill xdg-desktop-portal-wlr
${pkgs.xdg-desktop-portal}/libexec/xdg-desktop-portal -v -r &
${pkgs.xdg-desktop-portal-gtk}/libexec/xdg-desktop-portal-gtk --replace --verbose &
${pkgs.xdg-desktop-portal-wlr}/libexec/xdg-desktop-portal-wlr -l DEBUG -o eDP-1 &
'';
in
{
environment.systemPackages = [
xdg-fix
];
}