File dialog should use KDialog in KDE

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

User avatar
winnylinny
Posts: 46
Joined: Fri Apr 17, 2020 5:35 pm

File dialog should use KDialog in KDE

Post 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?
User avatar
xnview
Author of XnView
Posts: 36461
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: File dialog should use KDialog in KDE

Post by xnview »

I'll check, but i use QFileDialog which is easier to use
Pierre.
User avatar
winnylinny
Posts: 46
Joined: Fri Apr 17, 2020 5:35 pm

Re: File dialog should use KDialog in KDE

Post 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.)