Skip to content

Commit b432767

Browse files
committed
Update FSKit example for macOS 26
1 parent 51dc9e6 commit b432767

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

examples/fskit/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ Note in particular that **extensions must be bundled inside another application*
1515
```
1616

1717
2. Navigate to `System Settings > General > Login Items & Extensions`, and scroll down to the Extensions section.
18-
- Opening the link `x-apple.systempreferences:com.apple.LoginItems-Settings.extension` should do the trick.
19-
- In the File System Extensions cell, click the ⓘ symbol, and enable "FSKit Example Extension".
18+
- (Opening the link `x-apple.systempreferences:com.apple.LoginItems-Settings.extension` should do the trick).
19+
- On macOS 26, click `By Category`.
20+
- In the `File System Extensions` cell, click the ⓘ symbol, and enable "FSKit Example Extension".
2021

2122
4. Create a directory to serve as the mount target for the file system:
2223
```sh
@@ -39,7 +40,7 @@ Note in particular that **extensions must be bundled inside another application*
3940
4041
6. Optional: In another terminal, tun the following to get the logging output:
4142
```sh
42-
/usr/bin/log stream --predicate 'subsystem = "fskit-example"' --style compact --level debug
43+
/usr/bin/log stream --predicate 'subsystem == "fskit-example"' --style compact --level debug
4344
```
4445

4546
See [`println!` debugging](#println-debugging) below for details.
@@ -118,7 +119,7 @@ Writing to `/tmp` files won't work either, as those are sandboxed away too.
118119
119120
Instead, we use `tracing-oslog` to log errors via Apple's OSLog. These can be viewed with:
120121
```sh
121-
/usr/bin/log stream --predicate 'subsystem = "fskit-example"' --style compact --level debug
122+
/usr/bin/log stream --predicate 'subsystem == "fskit-example"' --style compact --level debug
122123
```
123124
124125
That said, I _have_ seen it fail at the boundaries / entry/exit points (`deactivateWithOptions:replyHandler:` for example isn't logged IIRC), so it's not a perfect solution.

examples/fskit/extension/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn setup() {
1919
// stderr is swallowed up by FSKit when spawning our process.
2020
//
2121
// View all logs with:
22-
// /usr/bin/log stream --predicate 'subsystem = "fskit-example"' --style compact --level debug
22+
// /usr/bin/log stream --predicate 'subsystem == "fskit-example"' --style compact --level debug
2323
let logger = OsLogger::new("fskit-example", "default");
2424
tracing_subscriber::registry().with(logger).init();
2525

0 commit comments

Comments
 (0)