Page 1 of 1

File dialog should use KDialog in KDE

Posted: Sat Oct 02, 2021 1:48 am
by winnylinny
For the Linux version of XnViewMP, the file dialog should use the one native to the desktop environment, which is especially important for KDE.

On KDE systems it should be KDialog, because it's...

* faster
* honors theme / icons of user's KDE theme
* native integration (Places, Bookmarks, Devices, Network, etc)
* honors "sort by" used in the file manager (Dolphin)
* ability to change icon size, previews, columns, hidden, etc

----------

For everything else, it can invoke GTK File Chooser or QFileDialog.

Is this hard to implement?

Can it be programmed/coded to simply invoke the environment's native file chooser?

Re: File dialog should use KDialog in KDE

Posted: Sat Oct 02, 2021 6:59 am
by xnview
I'll check, but i use QFileDialog which is easier to use

Re: File dialog should use KDialog in KDE

Posted: Sat Oct 02, 2021 4:05 pm
by winnylinny
xnview wrote: Sat Oct 02, 2021 6:59 am I'll check, but i use QFileDialog which is easier to use
I noticed it uses QFileDialog, but it really breaks workflow on KDE.

Chromium and Firefox have an option to use the native file choose (which is KDialog in KDE).

I don't think it would require coding from scratch? Just a flag that invokes KDialog (or the environment's native file chooser).

Using QFileDialog breaks a lot of workflow and integration, as explained in my initial post.

(It's a pain to navigate to SMB/NAS shares or external drives.)