Bug 353434 - Krita uses KDE file dialogues on non-Gnome-shell GTK DEs.
Summary: Krita uses KDE file dialogues on non-Gnome-shell GTK DEs.
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.9.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-02 06:07 UTC by Tyson Tan
Modified: 2016-03-21 11:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Krita's GTK file dialogue on Ubunt Gnome 15.04, Gnome-shell session (214.29 KB, image/png)
2015-10-03 09:29 UTC, Tyson Tan
Details
Krita's Qt file dialogue on Ubunt Gnome 15.04, Gnome Classic session (115.69 KB, image/png)
2015-10-03 09:40 UTC, Tyson Tan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tyson Tan 2015-10-02 06:07:20 UTC
On Ubuntu 15.04 and above, Krita only uses GTK open/save/export dialogue on Gnome-Shell sessions. Krita uses KDE file dialogues on other GTK based DEs like Gnome Flashback, XFCE and Unity, which introduces UI inconsistency.

Reproducible: Always
Comment 1 Halla Rempt 2015-10-03 07:48:52 UTC
Well, there are three file dialogs (five if we count Windows and OSX):

* KDE: only used when KDE_FULL_SESSION is set
* GTK: only used when XDG_CURRENT_DESKTOP is set to "GNOME"
* Qt's native file dialog: used in all other desktops

(And of course, the native Windows and OSX file dialogs)

It's not possible to figure out runtime which desktops are Qt-based and which desktops are GTK-based, so I decided to give Gnome users the GTK file dialog, KDE users the KDE file dialog and everyone else the default Qt file dialog. I got complaints from XFCE users about the GTK file dialog when that was enabled for their desktop -- I'm not sure I remember why, though.
Comment 2 Tyson Tan 2015-10-03 09:17:48 UTC
So what I saw was Qt file dialogue then.

XFCE aside, for some reason Unity, Gnome Flashback and Gnome Classic sessions got Qt file dialogue on Ubuntu 15.04. It wasn't the case for Gnome flashback on 14.04. 

I think we should at least give Unity, Gnome Flashback and Gnome Classic sessions GTK file dialogue because Qt file dialogues looks out-of-place on these DEs. More importantly, it lacks shortcuts to some important locations -- Home folder, mounted drives and Favorite locations. Another important aspect, GTK file dialogue locates to Home folder by default, and remembers the last used location within one Krita session. This is very convenient. Qt file dialogue on the other hand, locates to root folder everytime when it's opened. I have to click many times to change the location -- not a very good user experience in my opinion. 

Honestly, I don't see why anybody would want to use Qt file dialogue on a GTK based DE. I think we should also give other GTK based DEs like MATE and Cinnamon their native GTK file dialogue. There were some file dialogue related malfunctions on Krita's GTK dialogues, but they are all solved now. If that was the reason why XFCE users hates GTK dialogue, why not change it to GTK this time to see their reaction ;b
Comment 3 Tyson Tan 2015-10-03 09:29:18 UTC
Created attachment 94826 [details]
Krita's GTK file dialogue on Ubunt Gnome 15.04, Gnome-shell session

Notice that it has those useful locations on the left column.
Comment 4 Tyson Tan 2015-10-03 09:40:47 UTC
Created attachment 94827 [details]
Krita's Qt file dialogue on Ubunt Gnome 15.04, Gnome Classic session

Notice the left column has only Home folder and Root folder. It doesn't show mounted drives -- where everybody is going to open from and save to. Finding mounted drive though root folders on a Linux distribution is scary -- look at those names! I don't think a normal user can figure out going to "/media/username/mounted-drive", no to mention that every Linux distribution has different way to put their mounted drive. "/media/username/mounted-drive" works for Ubuntu 15.04 but not 12.04, and it's definitely not the case on Fedora these days. A user cannot add favorite location from a GTK based DE to alleviate this problem. 

It does remember last-used location, though, it was my mistake.
Comment 5 Halla Rempt 2016-03-20 14:28:49 UTC
Qt 5 .6 fixed this for us :-)
Comment 6 Tyson Tan 2016-03-21 01:12:50 UTC
Good news! Somehow on Ubuntu Gnome 15.10 I have never encountered this bug anymore...I wonder what triggered it last time. :b
Comment 7 Halla Rempt 2016-03-21 11:44:23 UTC
Probably a bug in Qt somewhere, actually.