# copilot: Fix config dir logic to support Flatpak environments \(\#32901\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e914d84f00df2069fad78072c58860a4d95c5f0b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e914d84f00df2069fad78072c58860a4d95c5f0b

Requested commit: e914d84f00df2069fad78072c58860a4d95c5f0b

Commit: e914d84f00df2069fad78072c58860a4d95c5f0b

Tree: b3ff67abb654725ce05af769ed724eb6908d2601

Author: Umesh Yadav

Committer: GitHub

## Message

```
copilot: Fix config dir logic to support Flatpak environments (#32901)

Closes #30784

In github copilot we were not handling the config path correctly for
FLATPAK.

* Only tested on mac don't have access to other platform. But this
should work on other platform as well. It follows the similar pattern
seen in zed config path resolution.
- [x] Macos
- [ ] Linux
- [ ] Linux with Flatpak
- [ ] Windows

Release Notes:

- Fix copilot config detection for flatpack
```

## Parents

- [ec0f2fa79aa2d61406c5105262528596ab8b21a6](https://git.cafe/gitcafe/zed/commit/ec0f2fa79aa2d61406c5105262528596ab8b21a6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e914d84f00df2069fad78072c58860a4d95c5f0b?format=markdown)
