# How to Fix File Dialog in COSMIC

Pop!\_OS just released it’s new and stable [COSMIC DE](https://system76.com/cosmic), and better yet, it came with [ARM image](https://blog.system76.com/post/pop-os-letter-from-our-founder#:~:text=New%20Pop%21%5FOS%2024%2E04%20LTS%20for%20ARM%20computers)! I can’t help myself but straight away wiping my linux disk into a brand new Pop!\_OS.

And everything went smooth! Except it came with broken open file dialog, like I can’t open any files in any apps. There are some open issues with it that has been closed, but I think it’s x86\_64 specific?

Instead of trying to fix it, I’m just going to replace the open file dialog, turns out it’s really doable!

## Install your second open file dialog

Open a root shell and install one:

```bash
sudo apt install xdg-desktop-portal-kde
```

Here I am using kde, but I think you can pick any from `xdg-desktop-portal-*`

## Switch your open file dialog

Here’s the magic, open this config file:

```bash
mkdir ~/.config/xdg-desktop-portal
vim ~/.config/xdg-desktop-portal/portals.conf
```

Edit it like:

```bash
[preferred]
org.freedesktop.impl.portal.FileChooser=kde
```

Then save it, then restart the XDG portal

```bash
systemctl restart --user xdg-desktop-portal
```

You should have a working open file dialog by now!

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765605223448/651ac571-aefe-4e8c-99fc-67505a7a0b78.png align="center")
