mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
[screen-sharing] add script to fix xdg-desktop-portals
This commit is contained in:
parent
243c937a0d
commit
11e1ef5801
2 changed files with 23 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
remmina
|
||||
teamviewer
|
||||
];
|
||||
imports = [ ./xdg-portal.nix ];
|
||||
|
||||
services.pipewire.enable = true;
|
||||
|
||||
|
|
22
extra/xdg-portal.nix
Normal file
22
extra/xdg-portal.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
{ 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
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue