fix(bbsteamie): auth steam with autostart script
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
ac72cccb72
commit
d90bfe8378
1 changed files with 12 additions and 7 deletions
|
@ -108,15 +108,20 @@ defaultSession: {
|
||||||
|
|
||||||
# Fix remote control prompt showing up everytime
|
# Fix remote control prompt showing up everytime
|
||||||
xdg.configFile = let
|
xdg.configFile = let
|
||||||
mkAutostart = name: flags: {
|
mkAutostart = name: exe: {
|
||||||
"autostart/${name}.desktop".text = "[Desktop Entry]\nType=Application\nExec=${name} ${flags}";
|
"autostart/${name}.desktop".text = "[Desktop Entry]\nType=Application\nExec=${exe}";
|
||||||
};
|
};
|
||||||
in (
|
in (
|
||||||
(mkAutostart "sudo" restartNetwork)
|
(mkAutostart "restart-network" "sudo ${restartNetwork}")
|
||||||
// (mkAutostart "steam" "-silent %U")
|
// (mkAutostart "steam" "steam -silent %U")
|
||||||
# Needs xdg-desktop-portal-kde patch provided by `self.overlays.xdg-desktop-portal-kde`
|
// (mkAutostart "krfb" "krfb --nodialog %c")
|
||||||
// {"plasmaremotedesktoprc".text = "[Sharing]\nUnattended=true";}
|
// (mkAutostart "kde-authorize-steam" (getExe (pkgs.writeShellApplication {
|
||||||
// (mkAutostart "krfb" "--nodialog %c")
|
name = "kde-authorize-steam";
|
||||||
|
text = ''
|
||||||
|
flatpak permission-set kde-authorized remote-desktop org.kde.krdpserver yes
|
||||||
|
flatpak permission-set kde-authorized remote-desktop "" yes
|
||||||
|
'';
|
||||||
|
})))
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue