"Lock to Launcher" generates invalid .desktop file when path contains spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Unity v7.5.0+
Ubuntu v16.10
Repro steps:
1. Open an app with spaces in the executable path that has no .desktop file
2. Right click the app icon in the launcher and click "Lock to Launcher"
Expected results:
A valid .desktop file is generated
Actual results:
A file like the following is generated in ~/.local/
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Salvage Solitude 8140 Configuration
Icon=salvagesol
Path=/home/
Exec=/home/
StartupNotify=false
StartupWMClass=
OnlyShowIn=Unity;
X-UnityGenerate
The spaces should be escaped or the locked app will disappear on the subsequent session