Bug 366260

Summary: kate opens real file as blank
Product: [Applications] kate Reporter: Roman <romeo.berlov>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kare.sars
Priority: NOR    
Version: 16.04   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 16.08
Sentry Crash Report:
Attachments: video

Description Roman 2016-07-29 19:59:24 UTC
If I open text file with kate I see blank page as result.
But if I open file via menu File->Open that's all right.
Please fix

Reproducible: Always

Steps to Reproduce:
1.direct mouse cursor above file
2.click right button
3.select "open with Kate"

Actual Results:  
Blank page

Expected Results:  
file with text
Comment 1 Kåre Särs 2016-07-30 06:14:13 UTC
Thanks for the report.

As this feature works perfectly for me, there must be some missing information. Is the file on a remote server? Are you using Plasma? Are you using Dolphin? Or something else that could effect the situation?
Comment 2 Roman 2016-07-30 19:41:03 UTC
Yes I use PCManFM 1.2.4 file manager on lubuntu 16.04 (4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux). But on previous lubuntu version 15.10 problem was missing.
I will add for you video as attachment
Comment 3 Roman 2016-07-30 19:46:33 UTC
Created attachment 100391 [details]
video

I show as I open file using kate than using leafpad
Comment 4 Kåre Särs 2016-07-31 11:42:08 UTC
Could it be that PACManFM does not provide the path properly?

I installed PCmanFM in kubuntu 16.04 and it worked as expected... strange....

Are you able to determine the command used to by PCmanFM to launch kate?
Comment 5 Roman 2016-07-31 13:16:44 UTC
"Could it be that PACManFM does not provide the path properly?"
But for leafpad it provides the path properly! 
How can I determine the command used to launch kate?
Comment 6 Roman 2016-07-31 13:18:20 UTC
$ ps -ax | grep kate
 2152 ?        Sl     0:01 kate -b file:///home/destructor/Dropbox/English.txt
Comment 7 Kåre Särs 2016-07-31 17:03:14 UTC
Thanks! That helped :)

The root of the problem is a bug that has been fixed at the Randa meeting earlier this summer. The fix will be in 16.08. (I'm using master, that is why I couldn't reproduce)

If you can get PCmanFM to remove the "file://" prefix of the file name, kate should work properly.
Comment 8 Roman 2016-07-31 19:38:04 UTC
Maybe you will recommend to use something for webpages edit instead kate?