Bug 245358 - [kde-windows] filepath do not like spaces
Summary: [kde-windows] filepath do not like spaces
Status: RESOLVED DUPLICATE of bug 183153
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_componentchooser (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 21:31 UTC by Sergei Andreev
Modified: 2012-03-02 09:05 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Andreev 2010-07-21 21:31:20 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                MS Windows

I've tried to change Konqueror to Firefox as default browser via systemsettings.
I've entered full path to firefox.exe (C:/Program Files/Mozilla Firefox/firefox.exe) but systemsettings rejected it:
'C:/Program' not found, please type a valid program name.
Replacing spaces with %20 or escaping path with "" does not help.

Reproducible: Always




Windows 7 32bit
KDE 4.4.4
Comment 1 Andrew 2011-08-07 00:14:48 UTC
I can confirm this behaviour in KDE 4.5.4. However using quotes does work. *

I imagine the fix would be to treat addresses as if they have the quotes in it all of the time.


* Instead of getting "'C:/Program' not found (...)" I get "'C:/Program Files/SomeGroup/SomeProgram.exe' not found", although this might be another bug altogether.
Comment 2 Andrew 2011-08-07 03:13:07 UTC
For the bug I was talking about, see https://bugs.kde.org/show_bug.cgi?id=183153

This is a separate issue though.
Comment 3 Aqeel Zafar 2011-11-23 15:25:09 UTC
I just tried opening a PDF file from C:\Program Files\ in Okular and few files from C:\Program Files in Konqueror, they are all opening fine.

I think this issue is solved now.

I am using KDE 4.7.0 on Windows XP SP3
Comment 4 Andrew 2012-01-11 09:20:14 UTC
Please excuse me for my late reply, I haven't been watching this recently.

I can still reproduce what I did in KDE 4.7.0.

Here's what I did previously which caused this bug:

1. Go into File Associations
2. Select a MIME-type
3. Click Add in the Application Order Preference section
4. Click the Open file dialog and choose a program with a space in the pathname

I get the error when selecting a program:
'C:/Program' not found, please type a valid program name.

If I add double-quotes around the whole file path/name, I get the error:
'C:/Program Files/OpenOffice.org 3/program/scalc.exe' not found, please type a valid program name.


On a side note, when I use Okular it does work fine with spaces, ie. I can reproduce the same results as what Aqeel Zafar reported.
Comment 5 Patrick Spendrin 2012-03-02 09:05:31 UTC

*** This bug has been marked as a duplicate of bug 183153 ***