Bug 387956

Summary: File chooser dialog truncates file names in /usr
Product: [Frameworks and Libraries] frameworks-kio Reporter: Matthew Trescott <matthewtrescott>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aacid, bugseforuns, dfasre, gurtos29A, kdelibs-bugs, lucjan.lucjanov, n.schnelle, nate, pavbaranov, simonandric5, vkrevs
Priority: NOR Keywords: usability
Version: 5.41.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Matthew Trescott 2017-12-16 13:20:37 UTC
Attempting to open a file in e.g. Okular, KWave, or Kate brings up a for chooser dialog. When navigating to /usr or /var, the file names become truncated when moving the mouse cursor over them. Dolphin is not affected, nor is the file chooser when using only folders under $HOME.
Comment 1 Matthew Trescott 2017-12-16 13:21:40 UTC
Created attachment 109408 [details]
Screenshot
Comment 2 Pawel 2017-12-17 08:45:33 UTC
I can confirm this bug. It appears on Qt 5.10 but not on Qt 5.9.x. Tested with KF5.40 and KF5.41.
Comment 3 Antonio Rojas 2017-12-17 10:27:06 UTC
*** Bug 387985 has been marked as a duplicate of this bug. ***
Comment 4 Nikola Schnelle 2017-12-17 20:39:49 UTC
This is probably duplicate of https://bugs.kde.org/show_bug.cgi?id=352776
Comment 5 Patrick Silva 2017-12-17 21:29:10 UTC
confirmed when sorting by size.

neon dev unstable, kde 5.9.3.
Comment 6 Patrick Silva 2017-12-17 21:35:20 UTC
(In reply to Dr. Chapatin from comment #5)
> confirmed when sorting by size.
> 
> neon dev unstable, kde 5.9.3.

sorry, I meant qt 5.9.3.
Comment 7 Lucjan 2017-12-18 15:17:32 UTC
I can confirm this bug. It appears on Qt 5.10 but not on Qt 5.9.x. Tested with KF5.40 and KF5.41.
Comment 8 Christoph Feck 2018-01-01 19:18:14 UTC
*** Bug 388078 has been marked as a duplicate of this bug. ***
Comment 9 Pawel 2018-01-02 11:20:40 UTC
Some other information:
1. This bug appears not only in KDE apps, but in "pure Qt 5.10", too. For example in QupZilla (2.2.3 but build from master git; commit #c2fbb1cb96, build on Qt 5.10). So it's rather upstream bug (in Qt), not in KDE.
2. It appears only with "not maximized" dialog window of open/save files etc. When this window starts as maximized - bug doesn't appears.
3. When we do something with not maximized window i.e. maximize it (names are not truncate, and next resize it to "normal" view - everything is ok - names are not truncates. We can change view from "short" to "detailed" and return to "short" and everything is ok, too.
Unfortunetly there is not any usefull info in konsole. Maybe only this: "QObject::connect: invalid null parameter" but I really do not know that it's related to this bug.
Comment 10 Christoph Feck 2018-01-02 14:12:13 UTC
Regarding 1. in comment #9: Every Qt application uses the KF5 file dialogs, if you have Plasma installed. Try running QupZilla with

XDG_CURRENT_DESKTOP=unix qupzilla
Comment 11 Pawel 2018-01-06 10:12:09 UTC
(In reply to Christoph Feck from comment #10)
> XDG_CURRENT_DESKTOP=unix qupzilla

With this one file/directory names aren't truncated but QupZilla works without "Plasma" changed colors and with dialog windows that looks like from Gtk+2.
Comment 12 Christoph Feck 2018-01-10 13:54:28 UTC
Sure. I was just showing you that the problem is indeed in KDE code, because with pure Qt code (which you can only get when disabling the Plasma integration), you do not see the issue.
Comment 13 Pawel 2018-01-11 13:25:27 UTC
(In reply to Christoph Feck from comment #12)
I've just tested on Lumina DE. It seems that this problem occours only in KDE's dialog windows (FluxBox is WM for Lumina DE).
Comment 15 Nate Graham 2018-01-12 17:51:57 UTC

*** This bug has been marked as a duplicate of bug 352776 ***
Comment 16 Pawel 2018-01-13 13:51:28 UTC
(In reply to Matthew Trescott from comment #14)
> Downstream has fixed this in the PKGBUILD script with this patch:
> https://cgit.kde.org/kio.git/patch/?id=248941a0
> 
Yes, and it seems, that it works! It's strange that I should applied this patch on kio 5.42rc1, too. Nevermind (yes, yes, yes... Nirvana :)).
Comment 17 Christoph Feck 2018-01-17 20:50:35 UTC
*** Bug 389129 has been marked as a duplicate of this bug. ***
Comment 18 Pawel 2018-01-18 08:24:33 UTC
I think, that we can mark this bug as resolved with KIO 5.42. So now, I don't see truncates file names no more.