Bug 205679

Summary: dolphin passes invalid file path when opening files (ms windows)
Product: [Applications] dolphin Reporter: Viesturs Zarins <viesturs.zarins>
Component: generalAssignee: KDE-Windows <kde-windows>
Status: RESOLVED FIXED    
Severity: normal CC: adaptee, faure, peter.penz19, ps_ml
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 4.7
Sentry Crash Report:

Description Viesturs Zarins 2009-08-30 12:54:08 UTC
Version:            (using KDE 4.3.0)
OS:                MS Windows
Installed from:    MS Windows

When opening files on Windows, dolphin passes file URL with a leading backslash, like this: \C:\Documents and Settings\user\My Documents\movie.avi

Some windows programs work fine this way, but many fail to understand the URL (windows media player and notepad for example).

Please remove the leading backslash from file URL when launching programs.
Comment 1 Patrick Spendrin 2010-01-14 18:26:10 UTC
yeah, that is a QUrl::path() vs. QUrl::toLocalFile() issue.
@Peter: if you know where that path() call is, maybe you can directly change it to toLocalFile().
Comment 2 Peter Penz 2010-01-15 13:42:45 UTC
@Saro: KFileItem::run() is used by Dolphin (which internally uses KFileItem::targetUrl()). I've added David Faure to CC, I guess he knows how this can be fixed without sideeffects...
Comment 3 Jekyll Wu 2012-01-07 05:45:52 UTC
I failed to reproduce the reported problem with media player and notepad using KDE SC 4.7 on Windows XP.