Segfault when .desktop file does not contain Exec line

Bug #1102613 reported by IBBoard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Synapse
New
Undecided
Unassigned

Bug Description

If Synapse encounters a .desktop file that does not contain an Exec line then it will segfault and crash as soon as it is launched.

While the Exec line is apparently required, it seems that not all files have the line (e.g. the attached Stellarium manual page from openSUSE). Instead of failing horribly, it would seem safer (and easier for users to understand) if Synapse ignored malformed files.

As a work-around, you can rename the file (if it isn't important to you) or add a dummy "Exec" line.

An alternative cause of the same behaviour could be a malformed file or an incorrectly named file (although I don't know what other checks are done).

This may also be related to bug #1067916, as the errors in the stack trace are the same.

Revision history for this message
IBBoard (ibboard) wrote :
Revision history for this message
IBBoard (ibboard) wrote :
IBBoard (ibboard)
description: updated
Revision history for this message
Jeremy Munsch (jeremy-munsch) wrote :

This is no longer an issue i think tested with last version
[WARN 13:49:37.138108] [desktop-file-service:198] Unable to get exec for Spotify

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.