# gpui_linux: Fix "No Apps Available" dialog when opening URIs on Linux/Wayland \(\#49752\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a245660533fb5c5b602f6ee2b0759ef7895d5ebc

Requested commit: a245660533fb5c5b602f6ee2b0759ef7895d5ebc

Commit: a245660533fb5c5b602f6ee2b0759ef7895d5ebc

Tree: 6f25f2b25fa86ffcffa01b35967cbf1d465d81d9

Author: Taha

Committer: GitHub

## Message

```
gpui_linux: Fix "No Apps Available" dialog when opening URIs on Linux/Wayland (#49752)

Closes #48169

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed "No Apps Available" dialog when opening URIs on Linux/Wayland

Swaps the order of `open_uri_internal` function: try xdg-open first, and
only fall back to the portal if every candidate command fails.

Build Tests:
I tested the build on Arch Linux & MacOS Tahoe and there were no issues.
No error logs when opening repo links.
```

## Parents

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

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