# fix\(desktop\): find profiles when Local State cannot be read · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/ffb07ee9b477267a3cac47471c3886ea49398e47)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: ffb07ee9b477267a3cac47471c3886ea49398e47

Requested commit: ffb07ee9b477267a3cac47471c3886ea49398e47

Commit: ffb07ee9b477267a3cac47471c3886ea49398e47

Tree: 3b423c5503e17376f1c130cc6ea6524c441c8c99

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): find profiles when Local State cannot be read

The fallback assumed a single `Default` profile, so a browser whose cookies
live in `Profile 1` reported nothing to import — and since sources without a
cookie database are now left out of the menu, it disappeared entirely rather
than degrading.

The user-data directory is scanned for directories that hold a cookie database
instead, which is the same signal the install check uses.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [1deedb31c4ef359d7ea62584da31d772b4cd9998](https://git.cafe/pingdotgg/t3code/commit/1deedb31c4ef359d7ea62584da31d772b4cd9998?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/ffb07ee9b477267a3cac47471c3886ea49398e47?format=markdown)
