mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 05:00:24 +02:00
Small fixes: quiet service stops, duplicate scheme handlers, script nits
- session.services.stop: stop only units that are active; stopping a unit that isn't loaded printed "Failed to stop" on every switch (by default for steam-ui-patches, steam-keyboard-patch and vr-keyboard-relay). - keyring: a scheme in the schemeHandlers of two apps is an assertion instead of one app silently winning. - vr-keyboard-replay.mjs: recorded paths have no time; label them by index. - webpack-modules.mjs: skip page files that are missing instead of throwing.
This commit is contained in:
1 parent
b942352663
commit
36886d61df
4 files changed
+13
-5
No files matched your search
+5
-1
@@ -246,7 +246,11 @@ in {
|
||||
assertions = map (id: {
|
||||
assertion = false;
|
||||
message = "steamFrame.keyring: \"${id}\" is in both flatpaks and programs.";
|
||||
}) (lib.intersectLists (lib.attrNames cfg.flatpaks) (lib.attrNames cfg.programs));
|
||||
}) (lib.intersectLists (lib.attrNames cfg.flatpaks) (lib.attrNames cfg.programs))
|
||||
++ lib.mapAttrsToList (mime: ids: {
|
||||
assertion = lib.length ids == 1;
|
||||
message = "steamFrame.keyring: ${lib.removePrefix "x-scheme-handler/" mime} is in the schemeHandlers of ${lib.concatStringsSep " and " ids}.";
|
||||
}) (lib.zipAttrs (map (h: { ${h.name} = lib.removeSuffix ".desktop" h.value; }) handlers));
|
||||
|
||||
xdg.dataFile = lib.mapAttrs' (id: app:
|
||||
lib.nameValuePair "applications/${id}.desktop" { text = entry id app; }) apps;
|
||||
|
||||
Reference in new issue
Block a user