Bug 368770 - Kate uses default Qt File Dialog *not KDE file dialog* which breaks tons of features, including KIO
Summary: Kate uses default Qt File Dialog *not KDE file dialog* which breaks tons of f...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 16.04.1
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-13 22:14 UTC by Marvin Jens
Modified: 2017-04-27 19:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
full stderr output after running kate with QT_DEBUG_PLUGINS=1 (204.39 KB, text/x-log)
2016-09-15 19:54 UTC, Marvin Jens
Details
full stderr output after running gwenview with QT_DEBUG_PLUGINS=1 (44.29 KB, text/x-log)
2016-09-15 19:54 UTC, Marvin Jens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marvin Jens 2016-09-13 22:14:13 UTC
packages from kubuntu 16.04.1 with backports
Kate version 15.12.3
KDE Frameworks 5.23.0
Qt 5.5.1 (built against 5.5.1)

Since upgrading KDE to KDE5 from kubuntu/backports a major showstopper was introduced. The File open/save dialogs are no longer the KDE dialogs but the ultra-simplistic standard QtFileDialog. This means:

  * no KIO/remote files
  * no copy&paste or typing of a URL
  * no "places"
  * ....

I was so far completely unable to debug the issue as I am not on top of all the Qt5/KDE framworks-plugin mechanism. But I am very willing to help track this down if I can get some help! Kwrite shows the same behaviour, while (strangely) Gwenview opens the proper KDE dialog.

Please let me know how I can help!

Reproducible: Always

Steps to Reproduce:
1. open kate
2. click file-> open
3.

Actual Results:  
Shows simplistic Qt File Dialog

Expected Results:  
Shows KDE File Dialog with all bells and whistles

Also happens with a newly created user account (so no stale KDE config files from before the move to KDE5)
Comment 1 Kåre Särs 2016-09-14 05:35:20 UTC
Thanks for the report.

Are you running Plasma5 or some other DE?
Comment 2 Burkhard Lück 2016-09-14 06:00:00 UTC
Ubuntu 16.04.1 LTS + Plasma 5.6.5 + Frameworks 5.23 + kate 15.12.3
Comment 3 Burkhard Lück 2016-09-14 06:45:41 UTC
VM with neo-devedition-gitstable
Frameworks 5.27.0 Kate 16.08.1 Plasma 5.7.5
Shows KDE File Dialog and is OK
Comment 4 Marvin Jens 2016-09-14 17:04:36 UTC
Running Plasma desktop (5.6.5) here. Refraining from re-installing neon, though. I'd prefer staying on LTS.
Comment 5 Marvin Jens 2016-09-15 19:54:05 UTC
Created attachment 101104 [details]
full stderr output after running kate with QT_DEBUG_PLUGINS=1

export QT_DEBUG_PLUGINS=1
kate 2> ~/kate_QT_DEBUG_PLUGINS.log
Comment 6 Marvin Jens 2016-09-15 19:54:48 UTC
Created attachment 101105 [details]
full stderr output after running gwenview with QT_DEBUG_PLUGINS=1

export QT_DEBUG_PLUGINS=1
gwenview 2> ~/gwenview_QT_DEBUG_PLUGINS.log
Comment 7 Marvin Jens 2016-09-15 19:57:52 UTC
I ran kate (file->open), which shows the Qt File Dialog, and gwenview (file->open), which shows the KDE File Dialog, from command line after setting QT_DEBUG_PLUGINS=1.

They both load KdePlatformThemePlugin (if that's the one I should be looking for?)

grep className ~/kate_QT_DEBUG_PLUGINS.log | sort | uniq
    "className": "AppMenuPlatformThemePlugin",
    "className": "CloseExceptPluginFactory",
    "className": "EPSPlugin",
    "className": "EXRPlugin",
    "className": "KateBtBrowserFactory",
    "className": "KateBuildPluginFactory",
    "className": "KateCTagsPluginFactory",
    "className": "KateFileBrowserPluginFactory",
    "className": "KateFileTreeFactory",
    "className": "KateKonsolePluginFactory",
    "className": "KateOpenHeaderFactory",
    "className": "KatePluginGDBFactory",
    "className": "KatePluginSearchFactory",
    "className": "KatePluginSymbolViewerFactory",
    "className": "KateProjectPluginFactory",
    "className": "KateReplicodePluginFactory",
    "className": "KateSnippetsPluginFactory",
    "className": "KateSQLFactory",
    "className": "KdePlatformThemePlugin",
    "className": "KonsolePartFactory",
    "className": "KraPlugin",
    "className": "KTERustCompletionPluginFactory",
    "className": "KWaylandPlugin",
    "className": "LumenPluginFactory",
    "className": "OraPlugin",
    "className": "PCXPlugin",
    "className": "PluginKateXMLToolsFactory",
    "className": "PSDPlugin",
    "className": "QComposePlatformInputContextPlugin",
    "className": "QDDSPlugin",
    "className": "QEglFSIntegrationPlugin",
    "className": "QGifPlugin",
    "className": "QIbusPlatformInputContextPlugin",
    "className": "QICNSPlugin",
    "className": "QICOPlugin",
    "className": "QJp2Plugin",
    "className": "QJpegPlugin",
    "className": "QLinuxFbIntegrationPlugin",
    "className": "QMinimalEglIntegrationPlugin",
    "className": "QMinimalIntegrationPlugin",
    "className": "QMngPlugin",
    "className": "QOffscreenIntegrationPlugin",
    "className": "QSvgIconPlugin",
    "className": "QSvgPlugin",
    "className": "QTgaPlugin",
    "className": "QTiffPlugin",
    "className": "QWaylandIntegrationPlugin",
    "className": "QWbmpPlugin",
    "className": "QWebpPlugin",
    "className": "QXcbEglIntegrationPlugin",
    "className": "QXcbGlxIntegrationPlugin",
    "className": "QXcbIntegrationPlugin",
    "className": "RASPlugin",
    "className": "RGBPlugin",
    "className": "SoftimagePICPlugin",
    "className": "StylePlugin",
    "className": "TabSwitcherPluginFactory",
    "className": "TextFilterPluginFactory",
    "className": "TGAPlugin",
    "className": "WaylandPlugin",
    "className": "X11Plugin",
    "className": "XCFPlugin",

grep className ~/gwenview_QT_DEBUG_PLUGINS.log | sort | uniq
    "className": "AppMenuPlatformThemePlugin",
    "className": "EPSPlugin",
    "className": "EXRPlugin",
    "className": "KdePlatformThemePlugin",
    "className": "KIOPluginForMetaData",
    "className": "KraPlugin",
    "className": "OraPlugin",
    "className": "PCXPlugin",
    "className": "PSDPlugin",
    "className": "QComposePlatformInputContextPlugin",
    "className": "QDDSPlugin",
    "className": "QEglFSIntegrationPlugin",
    "className": "QGifPlugin",
    "className": "QIbusPlatformInputContextPlugin",
    "className": "QICNSPlugin",
    "className": "QICOPlugin",
    "className": "QJp2Plugin",
    "className": "QJpegPlugin",
    "className": "QLinuxFbIntegrationPlugin",
    "className": "QMinimalEglIntegrationPlugin",
    "className": "QMinimalIntegrationPlugin",
    "className": "QMngPlugin",
    "className": "QOffscreenIntegrationPlugin",
    "className": "QSvgIconPlugin",
    "className": "QSvgPlugin",
    "className": "QTgaPlugin",
    "className": "QTiffPlugin",
    "className": "QWaylandIntegrationPlugin",
    "className": "QWbmpPlugin",
    "className": "QWebpPlugin",
    "className": "QXcbEglIntegrationPlugin",
    "className": "QXcbGlxIntegrationPlugin",
    "className": "QXcbIntegrationPlugin",
    "className": "RASPlugin",
    "className": "RGBPlugin",
    "className": "SoftimagePICPlugin",
    "className": "StylePlugin",
    "className": "TGAPlugin",
    "className": "XCFPlugin",
Comment 8 Marvin Jens 2016-09-19 15:37:34 UTC
all version info and an attempt of debugging the loaded Qt plugins have been added
Comment 9 Marvin Jens 2016-09-20 17:18:27 UTC
please let me know if there is anything I can do to provide useful debug output. This bug is really haunting me every day!
Comment 10 Kåre Särs 2016-09-20 20:13:37 UTC
I'm a bit confused as I'm running 64Bit Kubuntu 16.04 + backports (KF5.23, Plasma 5.6.5) + compiled from sources KTextEditor + Kate and I don't have that problem... From the logs it seems You are also on 64Bit...
Comment 11 Marvin Jens 2016-09-21 15:57:47 UTC
Yes, I am also on 64Bit kubuntu. But my kate is from the backports repo, not from source. Do you get the same plugins loaded as I do? Can I uninstall kate/backports and compile it from source easily? Is there a howto somewhere? I guess I'd need a lot of qt-dev and kde-dev packages, but I could try.
Comment 12 Marvin Jens 2016-09-21 15:59:39 UTC
But since there seems to be a lot of magic happening at runtime with Qt and the FileDialog, I am not even sure the problem is with kate itself (or its source code). However, I have no clue how to dissect this issue. The mechanisms under the hood are somewhat opaque to me. :(
Comment 13 Marvin Jens 2016-09-28 17:40:31 UTC
this is still not working. please let me know how I can help. Thx
Comment 14 Marvin Jens 2016-10-31 16:30:52 UTC
Okay, I gave up and switched to KDE neon. Now everything is perfect. It seems one should currently regard kubuntu/backports as broken? Thanks for your time anyway...
Comment 15 Nikolaos Kakouros 2017-02-16 00:38:18 UTC
So is this resolved?
Comment 16 Dominik Haumann 2017-02-18 11:45:28 UTC
I am pretty sure this is not a Kate issue: The KDE dialogs come through the frameworks-integration framework, meaning that the normal Qt dialogs are replaced by the KDE dialogs automatically.

If that does not work, this sounds like an installation setup issue.

Therefore, I will just close this, please report to either the distribution, or the frameworks-integration component...
Comment 17 Greg Rundlett 2017-04-27 14:15:45 UTC
Having the same problem (KIO unavailable to Kate due to simplistic File Open dialog) 
 
Kate Version 15.12.3
KDE Frameworks 5.18.0
Qt 5.5.1 (built against 5.5.1)
The xcb windowing system

Although this may be classified as not a "Kate" problem.  I could find no documentation about how to properly run Kate so that I could open remote files.  I recently upgraded to Ubuntu 16.04, and then installed kubuntu-desktop to get more KDE features. However, this has not worked out well. 

All I really want is to be able to use Konqueror (for multi-pane file browsing of local and remote file systems), Kate (editing of remote files) and Konsole (ssh into remote systems).  Somehow my system got broken such that Konqueror and Konsole work as expected.  I can even 'right click' -> 'Open with Kate' from a fish:// Konqueror session which proves that Kate can "speak" KIO; it's just the File Open dialog in Kate that is wrong.
Comment 18 Christoph Feck 2017-04-27 19:59:17 UTC
This is long fixed in newer versions. Please ask in a forum of your distribution how to get newer versions of KDE software.