@domicile-desktop/system-apps 0.0.0-alpha-1161efdfac68 → 0.0.0-alpha-ab2d2f0e2a24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,23 +2,21 @@
2
2
 
3
3
  Installed applications and bookmarks for a shell's launcher, read through the
4
4
  `files`, `processes` and `dbus` namespaces of
5
- [`desktop(domicile)`](../chrome-sdk/README.md). Manganese's launcher
5
+ the [`Domicile`](../chrome-sdk/README.md) a shell is handed. Manganese's launcher
6
6
  uses it (`src/launcher/app-search.ts`), and the component library's portal
7
7
  dialogs name applications with it.
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```ts
12
- import { desktop } from "@domicile-desktop/sdk/desktop/desktop";
13
12
  import { appIcons } from "@domicile-desktop/system-apps/app-icons";
14
13
  import { dataDirs } from "@domicile-desktop/system-apps/data-dirs";
15
14
  import { findApps } from "@domicile-desktop/system-apps/find-apps";
16
15
  import { installedApps } from "@domicile-desktop/system-apps/installed";
17
16
 
18
- const host = desktop(domicile);
19
- const dirs = (await dataDirs(host)).unwrapOr([]);
20
- const apps = (await installedApps(host, dirs)).unwrapOr([]);
21
- const icon = appIcons(host, dirs);
17
+ const dirs = (await dataDirs(domicile)).unwrapOr([]);
18
+ const apps = (await installedApps(domicile, dirs)).unwrapOr([]);
19
+ const icon = appIcons(domicile, dirs);
22
20
  const editors = findApps(apps, "edit", 50);
23
21
  ```
24
22
 
@@ -26,7 +24,7 @@ const editors = findApps(apps, "edit", 50);
26
24
 
27
25
  | Module | What it is |
28
26
  | --- | --- |
29
- | `./apps-desktop` | `AppsDesktop`: the slice of `desktop(domicile)` the library calls. |
27
+ | `./apps-desktop` | `AppsDesktop`: the slice of the `Domicile` the library calls. |
30
28
  | `./data-dirs` | The XDG data directories, from the desktop's environment (`env -0`). |
31
29
  | `./installed` | Every desktop entry under them; an earlier directory hides a later one's ID. |
32
30
  | `./desktop-entry` | One entry parsed: name, comment, argv, icon and `X-Domicile-Preview`. |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@cprussin/option-result": "^2.0.1",
4
- "@domicile-desktop/sdk": "0.0.0-alpha-1161efdfac68",
4
+ "@domicile-desktop/sdk": "0.0.0-alpha-ab2d2f0e2a24",
5
5
  "zod": "^4.5.4"
6
6
  },
7
7
  "description": "Installed applications and bookmarks for a Domicile shell's launcher, read through @domicile-desktop/sdk/system.",
@@ -54,5 +54,5 @@
54
54
  "test:unit": "bun test"
55
55
  },
56
56
  "type": "module",
57
- "version": "0.0.0-alpha-1161efdfac68"
57
+ "version": "0.0.0-alpha-ab2d2f0e2a24"
58
58
  }