GermainZ / xdg-desktop-portal-termfilechooser

xdg-desktop-portal backend for choosing files with your favorite file chooser
MIT License
71 stars 16 forks source link

Opening multiple files only opens one & open no files opens an empty one #4

Open Carlisle96 opened 1 year ago

Carlisle96 commented 1 year ago

Deleting line 58 in https://github.com/GermainZ/xdg-desktop-portal-termfilechooser/blob/main/src/filechooser/filechooser.c fixes the first problem.

And should check if /tmp/termfilechooser.portal contains at least 1 character other than a newline if it doesn't it should set num_lines to 0 instead of line 65