add KDE XDG desktop portal workaround
This commit is contained in:
parent
20465229ed
commit
09da72a0bf
@ -1,5 +1,8 @@
|
|||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
|
let
|
||||||
|
sleep = "${pkgs.coreutils}/bin/sleep";
|
||||||
|
systemctl = "${pkgs.systemd}/bin/systemctl";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./desktop-common.nix
|
./desktop-common.nix
|
||||||
@ -10,6 +13,26 @@
|
|||||||
services.xserver.displayManager.defaultSession = "plasmawayland";
|
services.xserver.displayManager.defaultSession = "plasmawayland";
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
|
||||||
|
# systemd.user.targets.plasma-core.unitConfig.Upholds = [ "restart-xdg-desktop-portal.service" ];
|
||||||
|
systemd.user.targets.graphical-session.unitConfig.Wants = [ "restart-xdg-desktop-portal-kde.service" ];
|
||||||
|
systemd.user = {
|
||||||
|
services.restart-xdg-desktop-portal-kde = {
|
||||||
|
enable = true;
|
||||||
|
description = "hack to fix xdg-desktop-portal on kde";
|
||||||
|
# wantedBy = [ "plasma-core.target" ];
|
||||||
|
after = [ "plasma-core.target" "xdg-desktop-portal.service" ];
|
||||||
|
requisite = [ "plasma-core.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = [
|
||||||
|
"${sleep} 5"
|
||||||
|
"${systemctl} --user restart xdg-desktop-portal.service"
|
||||||
|
];
|
||||||
|
Type = "oneshot";
|
||||||
|
RemainAfterExit = "yes";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# this fixes tiny file dialogs for Minecraft
|
# this fixes tiny file dialogs for Minecraft
|
||||||
libsForQt5.kdialog
|
libsForQt5.kdialog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user