Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose file dialog doesn't show files/folders on Linux #4803

Closed
1 task done
tqwewe opened this issue May 20, 2022 · 3 comments
Closed
1 task done

Choose file dialog doesn't show files/folders on Linux #4803

tqwewe opened this issue May 20, 2022 · 3 comments
Labels
B-bug Bug: general classification O-linux Operating System: Linux S-verified Status: Verified by maintainer

Comments

@tqwewe
Copy link

tqwewe commented May 20, 2022

Expected Behavior

Selecting a file via multipart form upload should allow me to see my files and select one. Files in root are visible, but files in my /home/ari directory are not.

Actual Behavior

The dialog opens, but the file list is empty. Dragging files into the dialog also fails with a message: Error: ENOENT: no such file or directory, open '/home/ari/dev/foo.txt'.

Reproduction Steps

  1. Create a new request
  2. Set the body type to be Multipart form
  3. Click "Choose File"
  4. Dialog opens, but see no files visible in home directory.

Is there an existing issue for this?

Additional Information

Screenshot from 2022-05-20 17-50-48

Insomnia Version

2022.3.0

What operating system are you using?

Other Linux

Operating System Version

Linux ari 5.17.7-300.fc36.x86_64 #1 SMP PREEMPT Thu May 12 14:56:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Installation method

Flatpak - dl.flathub.org

Last Known Working Insomnia version

No response

@tqwewe tqwewe added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 20, 2022
@filfreire filfreire added the O-linux Operating System: Linux label May 20, 2022
@tqwewe
Copy link
Author

tqwewe commented May 20, 2022

It seems like the flatpak exec command should include the additional argument --filesystem=home.

A temporary workaround is to edit the file at /var/lib/flatpak/exports/share/applications/rest.insomnia.Insomnia.desktop and add the argument to the Exec section.

sudo nano /var/lib/flatpak/exports/share/applications/rest.insomnia.Insomnia.desktop
[Desktop Entry]
Name=Insomnia
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --filesystem=home --command=/app/bin/insomnia --file-forwarding rest.insomnia.Insomnia --no-sandbox @@u %U @@
...

Note I added the --filesystem=home argument to the entry file.

Once updated, you can press ALT F2, and enter "r" to reload gnome.

@filfreire
Copy link
Member

filfreire commented May 20, 2022

Hey @tqwewe, thank you for reporting this!

Indeed this seems to be an issue with the flathub/flatpak "version" of Insomnia. There are other folks reporting this exact same issue on the flathub/rest.insomnia.Insomnia repository.

I would suggest you push a fix there, as for now we don't officially maintain or have permissions to that repository yet.

Feel free to report any other issues you come across, and thank you for finding this solution! 🙇

@tqwewe
Copy link
Author

tqwewe commented May 20, 2022

Thanks for pointing me to that repo, I wasn't aware thats where the flatpak repository was.

Feel free to close this issue if you think it's not in the scope of the official insomnia repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification O-linux Operating System: Linux S-verified Status: Verified by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants