Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49391 - [kate] kate does not open correct file if opened with mouse click

Attached to Project: Arch Linux
Opened by Hawky (p90) - Wednesday, 18 May 2016, 20:39 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 29 May 2016, 16:25 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Antonio Rojas (arojas)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Clicking any file connected to kate will open kate but not with the correct file. So i.e. you try to open a file named "Test A.txt" but kate will
try to open "Test%20A.txt" instead

I tracked the error down to the file
usr/share/applications/org.kde.kate.desktop

If instead of
Exec=kate -b %U
this is used:
Exec=kate %F
(%U is for Urls, %F is for files)
it works correctly again.

This happened for quite some time on my old system (did not write a bug report as I thought I just hard borged my system) as well as on a newly installed one (hence, the bug report)


Steps to reproduce:
Click on a file associated with kate
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 29 May 2016, 16:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  kate 16.04.1-2
Comment by Antonio Rojas (arojas) - Thursday, 19 May 2016, 06:00 GMT
Clicking where?
Comment by Jan de Groot (JGC) - Thursday, 19 May 2016, 08:23 GMT
According to its documentation, kate supports URLs. Using %U for local files should launch kate with file://full/path/to/file.

This isn't a bug in kate but with the filemanager/desktop you're opening the files with. It should pass URLs, not relative paths.
Comment by Hawky (p90) - Thursday, 19 May 2016, 16:55 GMT
Hi,

I am running lxqt, so the filemanager would be PcManFM-Qt.

Are you sure that this is a problem with the file manager?
As I said in my example, files with a spacehave theirspace replacedwith a %20 which is AFAIK the
correct way to handle the url.

If I try this on the console:

sudo touch /foo\ bar.test
kate file:///foo%20bar.test

I have the same problem.
And in this case, there is no file manager involved, is it?










Comment by Antonio Rojas (arojas) - Thursday, 19 May 2016, 18:33 GMT

Loading...