[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2018-08-23 Thread H . H .
https://bugs.kde.org/show_bug.cgi?id=358368

--- Comment #7 from H.H.  ---
Thanks, I'll try that, and I'm glad to have a workaround for now.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2018-08-23 Thread David Faure
https://bugs.kde.org/show_bug.cgi?id=358368

--- Comment #6 from David Faure  ---
KRun ends up in
KToolInvocation::startServiceByDesktopPath("/home/dfaure/.local/share/applications/kwrite-2.desktop"),
so the problem is in klauncher (KLauncher::createArgs).

Ah, I found it.
KIO::DesktopExecParser::resultingArguments looks at which protocols the
application supports. Since there's no X-KDE-Protocols entry in that desktop
file (and no Categories=KDE either), we have to assume that sftp isn't
supported (as we do with, say, LibreOffice or Firefox or whatever).

The never-ending problems of locally-created .desktop files

I think that when associating an existing app with a new mimetype, we need to
copy over the existing desktop file, not just create one from scratch.

Alternatively, or in addition, we could have a GUI for setting the supported
protocols thing, but that's a bit too manual I guess.

Short-term workaround: add X-KDE-Protocols=KIO to your local .desktop file for
kwrite.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2018-08-23 Thread David Faure
https://bugs.kde.org/show_bug.cgi?id=358368

David Faure  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2018-08-23 Thread H . H .
https://bugs.kde.org/show_bug.cgi?id=358368

--- Comment #5 from H.H.  ---
When I manually open the right-click-submenu "open-with.." and type there
"kwrite %u" it always works like expected, but this is too complicated, and
often forgotten.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2018-08-23 Thread H . H .
https://bugs.kde.org/show_bug.cgi?id=358368

H.H.  changed:

   What|Removed |Added

 Status|NEEDSINFO   |UNCONFIRMED
 Resolution|WAITINGFORINFO  |---

--- Comment #4 from H.H.  ---
This is still an issue. With some file-extensions it works like expected, but
with others like ".old" or ".jsp" it does not work.

I open them from dolphin (dolphin shows the sftp://user@domain/... path). When
I open a file in kwrite, kwrite should show (you can make kwrite show the
complete path in the title-bar) "sftp://...; and not "~/.cache/..". Also saving
does not work in the last case.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2018-08-22 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=358368

Nate Graham  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 Status|UNCONFIRMED |NEEDSINFO
 CC||n...@kde.org

--- Comment #3 from Nate Graham  ---
Is this still an issue with KDE Frameworks 5.49? How are you opening the files
in the first place? Are you opening them from the "sftp://..; path with Dolphin
or the file dialog, or directly from "~/.cache/kioexec/.."?

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kio] [Bug 358368] Files to be opened with "%u" are opened like "%f"

2016-01-24 Thread Frank Reininghaus via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358368

Frank Reininghaus  changed:

   What|Removed |Added

Product|dolphin |frameworks-kio
  Component|general |general
Version|15.08.3 |unspecified
 CC||frank7...@googlemail.com,
   ||kdelibs-b...@kde.org
   Assignee|dolphin-bugs-n...@kde.org   |fa...@kde.org

--- Comment #2 from Frank Reininghaus  ---
Thanks for the bug report. Dolphin uses KRun from KIO to open files (Dolphin
itself is entirely unaware of what application and what command line arguments
are used when you open a file), so I'll reassign.

-- 
You are receiving this mail because:
You are watching all bug changes.