unity shell is crashing for apps without icon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Unassigned | ||
ubuntu-app-launch (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
unity8 (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
Trying to launch a app from terminal that does not contains a "Icon" etry on it desktop file causes the shell to crash.
How to test
===========
* Create a desktop entry without the icon entry (something like that):
[Desktop Entry]
Name=Sync Monitor
Comment=Ask for online account authentication if the token expires
Exec=/usr/
Terminal=false
Type=Application
Version=1.0
X-Ubuntu-
* try to launch it from terminal or url launch:
/usr/lib/
Expected
========
App appears
Current
=======
Shell crashes and go back to login screen.
Related branches
- Marcus Tomlinson (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 540 lines (+211/-121)4 files modifiedlibubuntu-app-launch/application-info-desktop.cpp (+62/-29)
libubuntu-app-launch/application-info-desktop.h (+1/-1)
tests/CMakeLists.txt (+1/-0)
tests/application-info-desktop.cpp (+147/-91)
Changed in unity8 (Ubuntu): | |
importance: | Undecided → High |
tags: | added: unity8-desktop |
Changed in unity8 (Ubuntu): | |
status: | New → Triaged |
Changed in canonical-devices-system-image: | |
status: | New → Fix Committed |
Changed in unity8 (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
importance: | Undecided → High |
Seems to be a decision by ubuntu-app-launch
The constructor of Desktop throws an exception if no "Icon" entry is found in the desktop file (application- info-desktop. cpp line 230)
I agree it seems too much of an aggressive stance to bring the shell down for a missing Icon in a desktop file.