Bug 8598 - .desktop-file generator incorrectly handles backslashes
Summary: .desktop-file generator incorrectly handles backslashes
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: menu (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Sergey V Turchin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-06 08:14 MSK by Alexey Morozov
Modified: 2005-12-06 13:47 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Morozov 2005-12-06 08:14:49 MSK
To actually get a \ in .desktop-file (e.g.

Exec=wine "C:\Program Files\2gis\Nsk\grym.exe"

) one needs to quadro-escape it: \\\\ (e.g. command="wine \"C:\\\\Program
Files\\\\2gis\\\\Nsk\\\\grym.exe\""). Otherwise the resulting .desktop file is
incorrect
Comment 1 Sergey V Turchin 2005-12-06 13:47:48 MSK
Это специально сделанная фича для поддержки переноса строки еще со времен MDK.  
Т.е. extra_opt="Terminal=false\\nType=application" будет разворачиваться  
в .desktop с переводом строки.