Bug 8596

Summary: .desktop file generator handles paths with spaces incorrectly
Product: Sisyphus Reporter: Alexey Morozov <morozov>
Component: wineAssignee: Vitaly Lipatov <lav>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: lav
Version: unstable   
Hardware: all   
OS: Linux   

Description Alexey Morozov 2005-12-06 07:41:15 MSK
Nowadays wine intercepts certain WinAPI calls which should create shortcuts in
Windows Start Menu and Desktop. Wine then creates appropriate freedesktop.org
.desktop files (in ~/Desktop and ~/Desktop/WINE Applications.

Unfortunately sometimes these .desktop-files are generated not completely
correctly. The working path of the application (typically a path to the
application .exe-file) usually contains spaces within (e.g. because of "Program
Files") and thus must be quoted by application setup procedures (smth like
"C:\Program Files\2gis\Nsk"). But when this path is translated to Path entry of
the corresponding .desktop-file it should be unquoted back:

Path=$HOME/.wine/drive_c/Program Files/2gis/Nsk

Otherwise the setting doesn't have an effect which may break certain
applications (e.g. 2gis Nsk)
Steps to Reproduce:
1. You may try to install 2gis/Nsk (may be downloaded for free from
http://download.2gis.ru/arhives/2gisNsk87.exe to see the problem
Comment 1 Vitaly Lipatov 2005-12-14 11:41:12 MSK
Да, действительно. 
Будет исправлено в следующей сборке. 
Comment 2 Vitaly Lipatov 2005-12-16 00:00:16 MSK
fixed since 20051214-alt1