Bug 366260 - kate opens real file as blank
Summary: kate opens real file as blank
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 16.04
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-29 19:59 UTC by Roman
Modified: 2016-07-31 19:38 UTC (History)
1 user (show)

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


Attachments
video (1.56 MB, application/octet-stream)
2016-07-30 19:46 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
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?