Exception when parsing some desktop files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ear Candy |
New
|
Undecided
|
Unassigned |
Bug Description
Earycandy has problems with some .desktop files where there are several commands in Exec separated by semicolons. E.g. on my system there is the file ~/.local/
Exec=sh -c 'gvfs-mount -u "%U"; exec gthumb --import-photos'
Obviously ConfigParser returns such values not as a string but as a list. I have a fix in my branch at http://
Without the fix the following exeption is thrown when scanning such a .desktop file:
TypeError: expected string or buffer
Traceback (most recent call last):
File "/usr/lib/
a = Application(pid, command, app_name, self.desktop_files, win.get_icon ())
File "/usr/lib/
self.
File "/usr/lib/
ex = a.get_exec_
File "/usr/lib/
for r in re.finditer(p, self.get("Exec")):
File "/usr/lib/
return _compile(pattern, flags).
Related branches
- KillerKiwi: Approve (looks good)
-
Diff: 14 lines (+4/-1)1 file modifiedear_candy/Freedesktop.py (+4/-1)